⚡ Fare recorded April 25, 2026 · Prices change daily

San José to Madrid flights

San José (SJO) to Madrid (MAD): 5,281 miles (8,499 km) great-circle, about 11h 05m nonstop by our estimate. Cheapest fare observed: $926 round-trip on United Airlines, with 2 stops, departing May 25, 2026.

UAUnited AirlinesUA1097
Depart
SJO
San José, Costa Rica
00:30
2026-05-25
✈
Arrive
MAD
Madrid, Spain
Returns 13:30
2026-06-11
Stops
2 stops
Distance
5,281 mi
Est. nonstop time
11h 05m
Trip type
Round-trip
$926
Round-trip · per person
Book this flight →
Also compare on Aviasales →
About this flight

When did the cheapest San José to Madrid fare fly?

$926 round-trip, United Airlines UA1097, departing 2026-05-25 at 00:30, returning 2026-06-11. The recorded itinerary left on a Monday, returning on a Thursday 17 nights later; the fare was observed 30 days before departure. "Book this flight" opens Kiwi.com with the same airline and dates.

Route facts

How far is San José from Madrid?

  • Distance: 5,281 miles (8,499 km) great-circle, heading northeast.
  • Estimated nonstop flight time: about 11h 05m.
  • Departure airport: Juan Santamaria International Airport (SJO), San José, Costa Rica, UTC-6 on May 25, 2026.
  • Arrival: Madrid Barajas International Airport (MAD), Spain, UTC+2 on May 25, 2026.
  • Time difference: Madrid is 8 hours ahead of San José on the recorded date.
  • Route type: international, Costa Rica to Spain.
  • Arrival airport elevation: 1,998 ft.
  • Recorded itinerary: United Airlines UA1097, 2 stops, round-trip, 17 days between departure and return.
Fare comparison

How does the San José to Madrid fare compare with other routes from SJO?

At $926, it ranked 24th of the 30 round-trip fares we recorded from SJO (median $412). That is 17.5 cents per great-circle mile (round-trip price over one-way distance), below the SJO median of 21.6 cents across 29 round-trip routes.

Routes from SJO of similar length: Malaga (5,240 mi) at $1150 and Barcelona (5,573 mi) at $1165.

United Airlines had the cheapest fare on 3 of 30 SJO routes. It is the 6th longest of the 30 routes we track from SJO.

Other ways in

What did other cities pay to fly to Madrid?

Of 35 departure airports with a fare to Madrid, San José (SJO) ranked 23rd at $926. Lowest: $46 from Lisbon (LIS); highest: $1698 from Sydney (SYD); 13 nonstop. Cheapest-fare airlines (routes): United Airlines (4), Wizz Air (4), Air China (2), American Airlines (2), Ryanair (2) and TAP Portugal (2), plus 17 more.

Entry requirements

Do you need a visa to fly to Spain?

That depends on your passport and trip, so check the official source for Spain: European Commission: Schengen visa policy. Connecting elsewhere? Check that country's transit rules too.

Sources

Where do these numbers come from?

Travelpayouts fares (cheapest per route, observed April 25, 2026); OurAirports coordinates and elevations; IANA zones America/Costa_Rica, Europe/Madrid; flight time is our estimate.

FAQ

San José to Madrid flight questions

How far is San José from Madrid by plane?

+
San José is about 5,281 miles (8,499 km) from Madrid on a great-circle line from Juan Santamaria International Airport (SJO) to Madrid Barajas International Airport (MAD), heading northeast. It is the 6th longest of the 30 routes we track from SJO. The recorded itinerary had 2 stops, so the distance flown was longer.

How long is the flight from San José to Madrid?

+
About 11h 05m nonstop by our estimate for 5,281 miles (500 mph cruise plus 30 minutes, not a timetable). The recorded United Airlines fare was with 2 stops. 35 airports in our feed had a fare to Madrid; this one ranked 23rd, and 13 of the 35 were nonstop.

What is the time difference between San José and Madrid?

+
On May 25, 2026, San José was on UTC-6 (America/Costa_Rica) and Madrid on UTC+2 (Europe/Madrid), so Madrid was 8 hours ahead of San José: noon in San José was 20:00 in Madrid. Daylight saving changes it: in mid-January 2026 the gap is Madrid 7 hours ahead, in mid-July Madrid 8 hours ahead.

How much is a flight from San José to Madrid?

+
As observed on April 25, 2026: $926 per person round-trip on United Airlines flight UA1097, departing May 25, 2026, returning June 11, 2026, with 2 stops. At $926, it ranked 24th of the 30 round-trip fares we recorded from SJO (median $412). That is 17.5 cents per great-circle mile (round-trip price over one-way distance), below the SJO median of 21.6 cents across 29 round-trip routes. Prices change daily, so check the live fare.

Is there a nonstop flight from San José to Madrid?

+
The cheapest recorded fare had 2 stops; our feed keeps only the cheapest fare per route, so a pricier nonstop may exist. Into Madrid, 13 of the 35 recorded fares were nonstop. From SJO, 6 of 30 were. Routes from SJO of similar length: Malaga (5,240 mi) at $1150 and Barcelona (5,573 mi) at $1165.

Which airports serve flights from San José to Madrid?

+
It departs Juan Santamaria International Airport (SJO) in San José, Costa Rica, and arrives at Madrid Barajas International Airport (MAD) in Madrid, Spain. An international flight, Costa Rica to Spain. United Airlines had the cheapest fare on 3 of 30 SJO routes.

Where else near Madrid can you fly from San José?

Malaga (AGP) $1150Barcelona (BCN) $1165Athens (ATH) $1256Moscow (MOW) $1777New York (NYC) $340Toronto (YTO) $442All flights from San José →

Other cities with flights to Madrid

From Lisbon (LIS) $46From Porto (OPO) $63From Budapest (BUD) $81From Warsaw (WAW) $87From Rome (FCO) $101From Manchester (MAN) $135

Ready to fly?

Book United Airlines SJO → MAD · $926 →