Electrodialysis (ED) is a desalination technology with many applications. In order to better understand how the energetic performance of this technology can be improved, the various losses in the system should be quantified and characterized. This can be done by looking at the entropy generation in ED systems. In this paper, we implement an ED model based on the Maxwell-Stefan transport model, which is the closest model to fundamental equations. We study the sources of entropy generation at different salinities, and locate areas where possible improvements need to be made under different operating conditions. In addition, we study the effect of the channel height, membrane thickness, and cell-pair voltage on the specific rate of entropy generation. We express the second-law efficiency of ED as the product of current and voltage utilization rates, and study its variation with current density. Further, we define the useful voltage that is used beneficially for separation. We derive the rate of entropy generation that is due to the passage of ions through a voltage drop, and we investigate whether voltage drops themselves can provide a good estimate of entropy generation.