Pisa Galileo Galilei Airport: The good-value option is the direct Viabus airport coach to Lucca: about 1 hour and roughly €4 according to the current local-guide listing; buy before boarding at the arrivals-hall kiosk. If its timetable does not suit, take the Pisamover to Pisa Centrale, then a regional train to Lucca—allow about 45–60 minutes total after the connection, but it is usually dearer.
Florence Airport (Peretola): Do not pay for a private airport transfer unless you are a group with awkward luggage. Take the T2 tram to Firenze Santa Maria Novella, then a direct regional train to Lucca. Allow roughly 1 hour 45 minutes to 2 hours door to door and about €10–15 combined. Direct airport buses exist on some schedules, but the train via SMN is the dependable default.
Lucca railway station: This is the right arrival point: it sits immediately south of the walls, about a 5–10-minute walk through Porta San Pietro to the historic centre. From Pisa Centrale, regional trains run about every 30 minutes and take around 30 minutes; from Firenze Santa Maria Novella, direct trains run at least hourly and take about 90 minutes. Expect roughly €4–5 from Pisa and around €8–10 from Florence, depending on the service.
Pisa Centrale railway station: For Pisa’s airport or the city, use the frequent regional train to Lucca—about 30 minutes. If you are day-tripping specifically to the Leaning Tower, Pisa San Rossore is the more useful stop, only about 400 m from the monument; Pisa Centrale leaves a roughly 1.5 km walk.