Lucy is 17 at series start, turns 18 during the Tenrou Island arc (manga Ch. 152 / anime Ep. 122). The timeline is slightly compressed in the anime, but she's 17–18 for most of the story. Post-time-skip (year X791), she's 19–20.