San José to Alajuela — the oldest stretch of the Atlantic Railway

kitmasterbloke / Wikimedia Commons · CC BY 4.0 · 2026 · cropped

  • DistanceAbout 20 km, Estación del Atlántico to Alajuela (Estación Hospital)
  • Duration48 to 55 min end to end; Heredia in 22 to 30 min
  • Best seasonMondays to Fridays all year; no service at weekends

Introduction

Costa Rica's Atlantic Railway began here. In 1871 work started on a line from Alajuela to the Caribbean port of Limón, through San José, and the section between Alajuela and the capital was finished by the beginning of 1873, years before the rest. It was built to carry the coffee of the Meseta Central to the sea. Today the same corridor carries commuters: INCOFER runs a weekday train from the Estación del Atlántico in San José through Heredia to Alajuela, on 1,067 mm narrow gauge, in about fifty minutes.

The shape of the service matters more than its length. Twenty-three trains a day run each way between San José and Heredia, Mondays to Fridays, in a morning block and an evening one. Only five of them carry on to Alajuela, and none runs between the middle of the morning and four in the afternoon. The Alajuela terminus is a platform beside the Hospital San Rafael, 1.5 km short of the city centre, and the stop called Bulevar Aeropuerto is not an airport station: the terminal of Juan Santamaría International is about a kilometre from the line, with no link between them. Fares are ₡550 to Heredia and ₡800 more to Alajuela, and anyone aged 65 or over travels free.

The Journey

Trains leave from the Estación del Atlántico, the 1908 San José terminus of the Caribbean railway, restored in 2011 for the commuter service. The Cartago trains use the same station, but the Heredia line leaves it northwards, through Calle Blancos, Colima, Santa Rosa and Miraflores — bare platforms in the suburbs of Goicoechea, Tibás, Santo Domingo and San Pablo, on a line laid at street level all the way. Four of the morning and evening trains start further back, at the university halts of ULatina and UCR in San Pedro, and run through the Atlántico without terminating.

Heredia, 9.6 km out, is reached in 22 to 30 minutes. Its station building went up in the 1870s, was strengthened with timber in 1905, fell into disrepair in the middle of the twentieth century and was restored by the municipality in 2018–2019; it has been protected heritage since 2003. For most trains this is the end of the line.

On to Alajuela

The five through trains carry on west through San Francisco, San Joaquín de Flores and Río Segundo, across the coffee country of the Meseta Central, and take twenty-six minutes for the rest of the way. The track here was the first part of the Atlantic Railway to be finished; rails and equipment for it were hauled up to Alajuela from the Pacific port of Puntarenas by ox cart. In June and July 2026 the San Joaquín bridge was rebuilt under INCOFER's PROERI reconstruction programme, closing the section for four weekdays.

Bulevar Aeropuerto comes five minutes from the end. The name is the road's, not the airport's: Juan Santamaría International is about a kilometre away, and INCOFER, the transport ministry and the airport operator are only now studying a tram, monorail or tunnel to close the gap. The train finishes at Estación Hospital, a platform beside the Hospital San Rafael de Alajuela. Until the new hospital was built across the line it ran on to the old terminal in the centre; now the centre is about twenty minutes' walk, or a local bus, away.

Along the route

Apolo2400 / Wikimedia Commons · CC BY-SA 3.0 · 2014 · cropped

Out of the Estación del Atlántico

Twenty-three trains a day leave the 1908 terminus for Heredia, the first at 04:50 and the last at 19:30. Five go on to Alajuela. The line heads north through Calle Blancos, Colima and Santa Rosa, all bare platforms.
Znns / Wikimedia Commons · CC BY-SA 4.0 · 2023 · cropped

Heredia, where most trains turn

Heredia's station was built in the 1870s and restored in 2019. It is 9.6 km and 22 to 30 minutes from the Atlántico for ₡550, and eighteen of the twenty-three trains each way go no further.
Victor Quirós A / Wikimedia Commons · CC BY-SA 3.0 · 2013 · cropped

Through the coffee country

Beyond Heredia the five through trains call at San Francisco, San Joaquín de Flores and Río Segundo. This is the Meseta Central, where Costa Rica began growing coffee in 1779, and the farms still climb the slopes to the north.
Mariordo (Mario Roberto Durán Ortiz) / Wikimedia Commons · CC BY-SA 3.0 · 2009 · cropped

Past the airport, to the hospital

Bulevar Aeropuerto is a platform on a road, not an airport station: the terminal is about a kilometre away and nothing links them. Five minutes on, the train stops beside Hospital San Rafael, 1.5 km short of Alajuela's centre.

A bit of history

Work starts at Alajuela on a railway to Limón, through San José1871
Alajuela to San José, the first section, is finishedearly 1873
The whole line to the Caribbean opens7 December 1890
The El Virilla disaster kills 385 on a Heredia pilgrimage train14 March 1926
An earthquake damages the network; INCOFER's operations are suspended in 19951991
Commuter trains return between the Atlántico and Heredia2009
The first train of the new service runs through to Alajuela11 April 2016
Heredia fare becomes ₡550, rounded as the ₡5 coin is withdrawn1 July 2026

Culture & experiences along the way

Eric T Gunther / Wikimedia Commons · CC BY-SA 3.0 · 2012 · cropped
Coffee rows in Heredia province

The coffee that paid for the railway

Coffee reached the Meseta Central in 1779, and by 1843 a ship was carrying it straight from Costa Rica to England. The money it earned paid for the Atlantic Railway, begun at Alajuela in 1871 to carry the crop to the Caribbean. Alajuela and Heredia are still among the country's main growing provinces.
Axxis10 / Wikimedia Commons · CC BY-SA 4.0 · 2014 · cropped
Aristide Croisy's statue, Alajuela, unveiled 1891

Juan Santamaría, the drummer from Alajuela

Juan Santamaría, born in Alajuela in 1831, was a drummer in the army that fought William Walker's filibusters. He died on 11 April 1856 setting fire to their stronghold at Rivas. The date is a national holiday, his bronze has stood in his home town since 1891, and the country's main airport carries his name.

Timetables

Trains run Mondays to Fridays only, in two blocks: from before five in the morning until about half past nine, and from half past three until eight in the evening. Nothing runs at weekends. Twenty-three trains a day run each way between San José and Heredia; five of them go through to Alajuela, and those are the ones in the tables. The times are INCOFER's own boards, published on the route page in June 2026 and still current in November.

San José to Alajuela

Atlántico Heredia San Joaquín Bulevar Aeropuerto Alajuela (Hospital)
04:50 05:12 05:21 05:33 05:38
06:39 07:08 07:17 07:29 07:34
07:35 08:02 08:11 08:23 08:28
15:30 15:52 16:01 16:13 16:18
17:35 18:02 18:11 18:23 18:28

Alajuela to San José

Alajuela (Hospital) Bulevar Aeropuerto San Joaquín Heredia Atlántico
05:45 05:50 06:02 06:11 06:33
07:40 07:45 07:56 08:08 08:33
08:31 08:36 08:48 08:57 09:24
16:25 16:29 16:41 16:52 17:14
18:35 18:40 18:51 19:02 19:24

End to end the run takes 48 to 55 minutes. Between San José and Heredia the other eighteen trains each way fill the gaps: the first leaves the Atlántico at 05:30 and the last at 19:30, and the last train back from Heredia leaves at 20:01. Four of them start at ULatina in San Pedro, at 05:50, 07:11, 16:50 and 18:08, and three run back there from Heredia, at 06:35, 16:15 and 17:35.

Before you go

⚠️ This is not an airport train. Five trains a day, none in the middle of the day, none at weekends, and a kilometre between the Bulevar Aeropuerto platform and the terminal with nothing to bridge it.

⚠️ Public holidays are not normal days. On the holiday of Monday 31 August 2026 INCOFER ran this route on a reduced special timetable announced a few days ahead; engineering closures happen too, most recently on the San Joaquín–Alajuela section for four weekdays in June and July 2026. Since August 2026 INCOFER's live train positions have been published to Google Maps. The boards themselves are at incofer.go.cr (opens in a new tab).

As of November 2026.

Tickets

Nothing is sold in advance and nothing can be reserved: you board, and the conductor collects the fare in cash or by contactless debit or credit card or phone on a validator they carry. There is one class.

Fares are set by the regulator, ARESEP, and charged by section: ₡550 from the Estación del Atlántico to Heredia, ₡800 from Heredia to Alajuela, and ₡600 from ULatina to Heredia. A through ride from San José to Alajuela therefore costs ₡1,350, even on a train you never leave. The current fares date from 1 July 2026, when every rail fare was rounded to the nearest ₡10 because the Banco Central is withdrawing the ₡5 coin. Anyone aged 65 or over rides free, with priority boarding and reserved seats.

Book your tickets

Rail Passes

No rail pass covers this journey. INCOFER sells no period ticket, rover or tourist card, and no pass scheme in the region includes its trains. The single fare, set by ARESEP, is the whole offer.

It costs little to do without. San José to Heredia is ₡550, Heredia to Alajuela ₡800, and a through ride ₡1,350 — a few dollars. Passengers aged 65 and over travel free on any train.

Checked against INCOFER's route page and fares release, November 2026.

Places to Visit

Both ends of the through run are old colonial towns with their main sights close together. In Heredia the parish church and the Fortín face each other across the central square; in Alajuela the museum keeps the story of the town's national hero. Above them both rises Poás, which is a day out by road rather than by rail.

Tillor87 / Wikimedia Commons · CC BY-SA 3.0 · cropped

La Inmaculada, Heredia's parish church

Heredia's main church stands on the city's central square. Its cornerstone was laid on 31 October 1797 and the building was finished around 1806; the front came down in the earthquake of 1851 and was rebuilt in the plain, whitewashed neoclassical style it keeps today. Of the three statues of saints that once filled the niches, only St Peter remains, and the twenty stained-glass windows inside were made in France.
Victor Quirós A / Wikimedia Commons · CC BY-SA 3.0 · 2013 · cropped

El Fortín, the emblem of Heredia

Diagonally across from the church stands the tower the city put on its emblem. Fadrique Gutiérrez, the provincial governor, designed it in 1876 without being an architect, as the first of four corner towers that were never finished for want of money. It rises thirteen metres in rubble stone and brick, pierced with loopholes, and an ornamental amphitheatre and garden have taken the place of the town hall that stood beside it.
Rodrigo Fernández / Wikimedia Commons · CC BY-SA 4.0 · 2014 · cropped

The Juan Santamaría museum, Alajuela

Alajuela's old barracks and its old jail, both nineteenth-century and both protected as national heritage, have held this museum since 1974. It is given over to the Campaña Nacional of 1856–57, when Costa Rica fought William Walker's filibusters, and keeps uniforms from the campaign, portraits and battle paintings of the period, and a large library of Costa Rican history around a quiet colonnaded patio.
Embajada de los Estados Unidos en Costa Rica / Wikimedia Commons · public domain · 2022 · cropped

Poás, the volcano above Alajuela

Poás is 2,697 metres high and active. Its crater lake, the Laguna Caliente, is one of the most acidic lakes on Earth, with a layer of liquid sulphur on its floor. Eruptions closed the national park in 2025 until 30 July, and a damaged road bridge shut it again until 29 January 2026. Tickets must be bought online in advance, and there is no train: it is a road trip up from Alajuela.

Where to Sleep

With trains only in the morning and evening, the line works as an outing from San José, and the hotels near the Estación del Atlántico serve as well for it as for the Cartago train. Staying out along the line suits the Heredia hills and the coffee farms, and Alajuela is where the country's main airport is, so the hotels there are used to early flights. Neither of the two below is in a town centre; both are open and take bookings directly.

Where to stay

Questions or corrections

Planning this trip and stuck on something, or spotted a time, fare or detail that has changed? Send us a message about San José to Alajuela — the oldest stretch of the Atlantic Railway. We read every one, and we update this page when something has changed.