Madrid

$460+ Cheap flights from San Francisco (SFO) to Madrid, Spain (MAD)

This is the cheapest one-way flight price found by a Cheapflights user in the last 72 hours by searching for a flight departing on 7/26. Fares are subject to change and may not be available on all flights or dates of travel.
SFO — MAD
Jun 8 — Jun 151
We work with more than 300 partners to bring you better travel deals

Find cheap flights from San Francisco to Madrid with Cheapflights

1. Tell us where you want to go

Enter your travel information like dates, passengers, trip type (one-way or round trip), and preferred cabin class then click “Find deals”

2. Select your favorite providers

We find the providers serving your travel needs. Choose up to four travel providers to compare side-by-side for flights, hotels, or car rentals.

3. Compare prices and book

Review each provider’s pricing and select the best option for you! Book through your favorite provider’s website for a seamless experience.
Cheapflights Tip: The best prices from San Francisco to Madrid Barajas are usually found in February or October, booked 77 days in advance, depart on a Wednesday or Tuesday and return on a Tuesday

Cheap flight deals from San Francisco to Madrid

Cheapest flights from San Francisco to Madrid
Explore the most affordable flight options available from San Francisco to Madrid. Find the lowest fares from popular airlines and budget airlines, with prices last updated on May 9, 2026.

This oojo deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure oojo is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Wed 7/294:35 pm
SFO
-
MAD
1 stop17h 35m
TAP AIR PORTUGAL
Mon 8/317:40 am
MAD
-
SFO
1 stop15h 25m
TAP AIR PORTUGAL
Deal found 5/5$641
This oojo deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure oojo is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Wed 11/114:35 pm
SFO
-
MAD
1 stop15h 35m
TAP AIR PORTUGAL
Tue 11/249:10 pm
MAD
-
SFO
1 stop26h 35m
TAP AIR PORTUGAL
Deal found 5/5$651
This Gotogate deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure Gotogate is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Thu 7/304:30 pm
SFO
-
MAD
1 stop22h 50m
TAP AIR PORTUGAL
Mon 8/317:40 am
MAD
-
SFO
1 stop15h 25m
TAP AIR PORTUGAL
Deal found 5/5$655
This FlightHub deal was found by Cheapflights users on 5/7. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure FlightHub is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Tue 8/187:20 pm
SFO
-
MAD
2 stops20h 00m
TAP AIR PORTUGAL
Wed 12/97:40 am
MAD
-
SFO
1 stop16h 05m
TAP AIR PORTUGAL
Deal found 5/7$664
This eDestinos deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure eDestinos is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Wed 11/44:35 pm
SFO
-
MAD
1 stop15h 35m
TAP AIR PORTUGAL
Mon 11/167:40 am
MAD
-
SFO
1 stop16h 05m
TAP AIR PORTUGAL
Deal found 5/5$665
This FlightHub deal was found by Cheapflights users on 5/6. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure FlightHub is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Mon 12/284:35 pm
SFO
-
MAD
1 stop18h 45m
TAP AIR PORTUGAL
Thu 1/149:10 pm
MAD
-
SFO
1 stop27h 55m
TAP AIR PORTUGAL
Deal found 5/6$669
This Booking.com deal was found by Cheapflights users on 5/7. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure Booking.com is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Mon 11/24:35 pm
SFO
-
MAD
1 stop21h 55m
TAP AIR PORTUGAL
Mon 11/167:40 am
MAD
-
SFO
1 stop16h 05m
TAP AIR PORTUGAL
Deal found 5/7$671
This oojo deal was found by Cheapflights users on 5/6. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure oojo is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Wed 8/194:45 pm
SFO
-
MAD
1 stop34h 15m
Scandinavian Airlines
Wed 9/26:30 pm
MAD
-
SFO
1 stop29h 10m
Scandinavian Airlines
Deal found 5/6$673
This Kiwi.com deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure Kiwi.com is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Wed 11/184:35 pm
SFO
-
MAD
1 stop15h 35m
TAP AIR PORTUGAL
Fri 12/47:40 am
MAD
-
SFO
1 stop17h 25m
TAP AIR PORTUGAL
Deal found 5/5$674
This Gotogate deal was found by Cheapflights users on 5/5. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure Gotogate is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Thu 8/204:30 pm
SFO
-
MAD
1 stop22h 50m
TAP AIR PORTUGAL
Thu 8/277:40 am
MAD
-
SFO
1 stop15h 50m
TAP AIR PORTUGAL
Deal found 5/5$676
This Justfly.com deal was found by Cheapflights users on 5/7. Clicking the “Pick Dates” button in this card will allow you to select your dates and further customize your flight criteria. From there, click “Find deals”, make sure Justfly.com is selected, and click “Compare selected” under the list of providers to see comparable flight deals.
Thu 8/204:45 pm
SFO
-
MAD
1 stop34h 10m
Scandinavian Airlines
Tue 12/85:00 pm
MAD
-
SFO
1 stop30h 50m
Scandinavian Airlines
Deal found 5/7$678

Find flight deals from San Francisco to Madrid

Discover tips and strategies to find the most affordable flight options for your journey from San Francisco (SFO) to Madrid (MAD). Learn about various techniques such as flexible date searches, comparing prices across and setting up price alerts. Use these methods to find the cheapest flights available for your travel needs. Data last updated May 9, 2026.

Most accurate provider

FlightHub
3 stars

Most trusted provider

FlightHub
3 stars

Round-trip from

$641
(oojo)

One-way from

$460
(Kiwi.com)

Popular in

December

Cheapest in

February

Average price

$841

Good round-trip deal

$1,096 or less

Good one-way deal

$489 or less
Provider with most accurate pricing for San Francisco-Madrid Barajas flight deals.
Provider most trusted by Cheapflights users for San Francisco-Madrid Barajas flights.
From San Francisco to Madrid Barajas
One-way flight from San Francisco to Madrid Barajas
Highest demand for flights based on searches. 5% potential increase in price ($40 potential increase over avg. RT price).
Cheapest flight prices on average. 5% potential price decrease ($39 potential savings vs. average RT price).
Average for round-trip flights in May 2026
Price to beat on a round-trip flight from San Francisco to Madrid Barajas.
Price to beat on a one-way flight from San Francisco to Madrid Barajas.

Cheapflights Fare Finder

 
Customize your flight search to find flights from San Francisco to Madrid that fit within your specific budget. Explore options based on user searches and filter the results based on your desired price range. Find flights that match your budget for a cost-effective journey. Over the last 7 days, Cheapflights users made 2,558,603 searches. Data last updated May 9, 2026.
Use the filters below to find and compare flights from San Francisco to Madrid that are best for you.

Fly from

Fly to

Route

Depart

Return

Price

Cheapest round-trip
Quickest round-trip

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Tue 8/4

1:10 pm-4:45 pm

2 stops18h 35m

Madrid Barajas

Wed 9/2

6:00 am-11:45 am

1 stop14h 45m

$842

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Sat 5/30

4:30 pm-9:55 pm

1 stop20h 25m

Madrid Barajas

Tue 9/15

7:05 am-9:39 pm

2 stops23h 34m

$1,000

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Sun 7/12

2:30 pm-7:15 pm

2 stops19h 45m

Madrid Barajas

Mon 8/24

6:00 am-6:13 pm

2 stops21h 13m

$1,000

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Wed 7/29

3:05 pm-4:45 pm

1 stop16h 40m

Madrid Barajas

Fri 8/7

12:45 pm-10:33 pm

1 stop18h 48m

$1,018

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Fri 8/7

8:10 pm-11:20 am

1 stop30h 10m

Madrid Barajas

Fri 8/14

6:00 am-11:44 pm

2 stops26h 44m

$1,071

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Wed 7/22

12:42 pm-3:35 pm

2 stops17h 53m

Madrid Barajas

Tue 8/4

6:00 am-6:24 pm

2 stops21h 24m

$1,121

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Fri 8/7

8:10 pm-11:20 am

1 stop30h 10m

Madrid Barajas

Sun 8/16

1:05 pm-11:45 am

1 stop31h 40m

$1,132

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Fri 8/7

2:00 pm-7:15 pm

2 stops20h 15m

Madrid Barajas

Sat 8/15

6:00 am-8:19 pm

2 stops23h 19m

$1,144

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Thu 8/6

2:21 pm-7:35 pm

2 stops20h 14m

Madrid Barajas

Sat 8/15

12:20 pm-11:54 pm

2 stops20h 34m

$1,156

San FranciscoMadrid

SFO - MAD

SFOMAD

San Francisco

Wed 7/8

3:05 pm-3:35 pm

1 stop15h 30m

Madrid Barajas

Sat 7/11

12:45 pm-10:43 pm

2 stops18h 58m

$1,181

Flights are sorted by cheapest round-trip flights first.

Deals found on 5/6

Showing 1-10 of 22 resultsSorted by cheapest first
1
2
3

Compare providers for flights from San Francisco to Madrid

Provider information is updated monthly. Please note that these providers often have deals for this flight, but the availability may vary on a day-by-day basis on Cheapflights.
Use the table below to compare price accuracy, trust ratings, and cancellation policies for each provider offering flight deals from San Francisco to Madrid in May.
ProviderPrice AccuracyTrust Score*
ExpediaPrice Accuracy1 starTrust Score*3 stars
AranGrantPrice Accuracy3 starsTrust Score*3 stars
FlightHubPrice Accuracy3 starsTrust Score*3 stars
OvagoPrice Accuracy3 starsTrust Score*3 stars
eDreamsPrice Accuracy2 starsTrust Score*3 stars
JustAirTicketPrice Accuracy-Trust Score*1 star
CheapflightsfaresPrice Accuracy2 starsTrust Score*1 star
CheapOairPrice Accuracy3 starsTrust Score*3 stars
GurufarePrice Accuracy3 starsTrust Score*3 stars
GotogatePrice Accuracy2 starsTrust Score*3 stars

*The Trust Score is based on feedback from users after their booking experience. It measures overall satisfaction, helping us identify issues like hidden fees, problems during the ticketing process, and the quality of customer service. This score is our best indicator of the provider's quality and reliability.

  • Most accurate provider: When it comes to deals on San Francisco-Madrid flights, users find the pricing of FlightHub to be most consistent on Cheapflights vs. FlightHub Users can find the same prices on San Francisco-Madrid flight deals on Cheapflights vs. FlightHub >95% of the time. Price accuracy is based on data collected from San Francisco-Madrid flight searches over the past month and is updated monthly.
  • Most trusted provider: When it comes to deals on San Francisco-Madrid flights, Cheapflights users trust FlightHub the most. FlightHub has received a user feedback score of 3 out of 3 stars (3 being the best), meaning they have been trusted the most by Cheapflights users looking for San Francisco-Madrid flight deals. Provider user feedback score is based on Cheapflights searches over the past month and is updated monthly.

Best time to book a flight from San Francisco to Madrid

Have a flexible travel schedule? Discover the best time to fly to Madrid from San Francisco with our price prediction graph.
Estimated round-trip price
Rates are based on past data. Find the cheapest month and day to book your flight based on your travel requirements, then search for cheap deals.

Cheapflights Insights

Everything you need to know about your flight from San Francisco to Madrid

How far ahead should I book a flight from San Francisco to Madrid?

To ensure you get the cheapest price possible for a flight from San Francisco to Madrid, you should look to book at least 76 days in advance of your intended travel date. The price of your flight may increase if you delay and leave booking until a week or so before departure.

What is the cheapest month to book a flight from San Francisco to Madrid?

Currently, February is the cheapest month in which you can book a flight from San Francisco to Madrid (average of $532). Flying from San Francisco to Madrid in December is currently the most expensive (average of $1,155). There are several factors that can impact the price of a flight, so comparing airlines, departure airports and flight times can provide users with more options.

What is the cheapest time of day to fly from SFO to MAD?

Find hourly flight availability from San Francisco to Madrid. Discover flight options and departure times throughout the day, allowing you to choose a departure time that suits your schedule. Data last updated May 9, 2026.

When flying from San Francisco to Madrid, the time of day you decide to fly out makes little to no difference towards the overall price you’ll pay on tickets.

How much does it cost to fly round-trip from San Francisco to Madrid?

Reviews of airlines servicing Madrid

Get insights into the airlines that provide service to Madrid. Read reviews, discover amenities, and learn about the overall travel experience offered by airlines. Use this information to make informed decisions when choosing an airline for your flight to Madrid. Reviews last updated May 9, 2026.
Get a feel of what it's like to fly with United Airlines,TAP AIR PORTUGAL, andAmerican Airlines from San Francisco to Madrid by reading reviews from past customers. Users have also rated airlines in terms of entertainment options, comfort, food, crew/service, and boarding process.

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Overall

7.4

Boarding

7.7

Food

6.6

Crew

8.1

Comfort

7.3

Entertainment

7.1

Reviews

1 / 20
4.0
Okay

Thomas,Mar 2025

SFO - TPE

When I asked for an extra snack, I got an unhappy look from the stewardess. Geez, does one extra snack really affect the bottom line??

Related info for your journey

Find useful and relevant information for your journey from San Francisco to Madrid. Access travel guides, tips, and recommendations to enhance your travel experience. Get information about local attractions, weather, transportation options, and more.
  • What airports do I use to fly from San Francisco to Madrid?

    Booking a flight from San Francisco (SFO) to Madrid Barajas (MAD) is your only option if you wish to fly from San Francisco to Madrid. On a typical day, there are 3 flights from San Francisco to Barajas, all of which are around 11h 15m for a nonstop flight. You can also purchase a plane ticket from 17 airlines when you book a flight from San Francisco to Madrid.

  • How popular is this San Francisco to Madrid flight route?

  • How long is the flight from San Francisco to Madrid?

    For as low as $842, Delta can have you in Madrid from San Francisco in 18h 35m. Airlines will cover a distance of 5794 mi.

  • What are the cheapest airlines flying from San Francisco to Madrid round-trip?

    Cheapflights users have booked flights from San Francisco to Madrid round-trip from $328. Other airlines that can offer you cheap pricing are JetBlue, from $395, and Air Canada, from $408. TAP AIR PORTUGAL is 55% cheaper than the average price of flights available within the next 90 days to this destination.

  • What are the cheapest airlines to fly from San Francisco to Madrid one-way?

    The cheapest airlines for a one-way flight from San Francisco to Madrid are TAP AIR PORTUGAL ($200), ITA Airways ($280), and Brussels Airlines ($281).

  • What are the most reliable airlines from San Francisco to Madrid?

    The top 3 most reliable airlines when flying from San Francisco to Madrid are American Airlines (50%), Qatar Airways (50%) and Alaska Airlines (50%).

  • What are the cheapest flights from San Francisco to Madrid?

    The cheapest flight price from San Francisco to Madrid is $346. On average you can expect to pay $968. The most popular route, (San Francisco - Madrid Barajas), can usually be booked for $641.

  • Where are the most common layover locations when flying from San Francisco to Madrid?

  • What are some popular things to do or see while on a layover in Lisbon?

    If you're on a layover in Lisbon and looking for things to do, consider visiting Chiado, Praça do Marquês de Pombal, or Londres. Travelers on a layover in Lisbon can visit Chiado, Praça do Marquês de Pombal, and Londres, by traveling 4.5 mi, 3.6 mi, and 2.3 mi, respectively after landing at Lisbon Humberto Delgado. Travelers can book a car rental at Lisbon Humberto Delgado for about $20 per day to make their sightseeing more efficient.

  • What are some popular points of interest to see during a layover in London?

    The majority of London visitors spend their time at Hyde Park, Buckingham Palace, and Piccadilly Circus. Hyde Park, Buckingham Palace, and Piccadilly Circus can be visited by traveling about 12.5 mi, 13.7 mi, and 14.1 mi respectively from London Heathrow. Those looking to explore during their layover in London can rent a car from London Heathrow for about $38 per day.

  • What are points of interest worth seeing during a layover in Montreal?

    Montreal travelers tend to visit Centre Bell, Vieux-Port de Montréal, and Notre-Dame Basilica more than any other attractions. Centre Bell, Vieux-Port de Montréal, and Notre-Dame Basilica can be accessed by traveling approximately 9.1 mi, 10.0 mi, and 9.9 mi, respectively from Montreal Pierre Elliott Trudeau Intl. Travelers in need of a car in Montreal can rent one for about $45 per day.

  • Where are the least popular layover locations for San Francisco to Madrid flights?

  • Can I find deals for flights from San Francisco to Madrid that include hotel bookings?

    Yes. In addition to deals on San Francisco to Madrid flights, Cheapflights offers vacation packages that include both flights and hotel.

  • How can I find direct flights from San Francisco to Madrid?

    After entering your origin and destination, apply the non-stop filter on the search result page to find direct flights from San Francisco to Madrid.

  • Can I find deals for business class flights from San Francisco to Madrid?

    Yes. Cheapflights offers flight deals from San Francisco to Madrid by cabin class. In addition to browsing deals, you can also filter by cabin class on the search results page after making a search.

  • What is the cheapest month to book a flight from San Francisco to Madrid?

    Currently, February is the cheapest month in which you can book a flight from San Francisco to Madrid (average of $532). Flying from San Francisco to Madrid in December is currently the most expensive (average of $1,155). There are several factors that can impact the price of a flight, so comparing airlines, departure airports and flight times can provide users with more options.

See more FAQs

Traveling to a place near Madrid?

Book flights to Madrid if you plan to visit one of these locations
Getafe

Browse thousands of different options on Cheapflights for your next trip

Toggle through the tabs below to find thousands of options on Cheapflights for your next trip.

Top 10 airlines flying from San Francisco to Madrid

Discover the top 10 airlines that operate flights from San Francisco to Madrid. Compare their services, reliability, and customer satisfaction ratings to choose the airline that best suits your travel preferences and needs. Over the last 7 days, Cheapflights users made 2,558,603 searches. Data last updated May 9, 2026.
AirlineCheapestAverageFlexibilityOn-time
TAP AIR PORTUGALCheapest$328Average$551FlexibilityNo cancel feeOn-timeN/A
JetBlueCheapest$395Average$1,061FlexibilityNo cancel feeOn-time62%
Air CanadaCheapest$408Average$695FlexibilityNo cancel feeOn-time67%
FinnairCheapest$412Average$708FlexibilityNo cancel feeOn-time76%
SWISSCheapest$443Average$656FlexibilityNo cancel feeOn-time79%
DeltaCheapest$446Average$694FlexibilityNo cancel feeOn-timeN/A
British AirwaysCheapest$451Average$689FlexibilityNo cancel feeOn-time70%
KLMCheapest$458Average$749FlexibilityNo cancel feeOn-time75%
Scandinavian AirlinesCheapest$469Average$613FlexibilityNo cancel feeOn-time77%
United AirlinesCheapest$475Average$848FlexibilityNo cancel feeOn-time69%

100% Free

Cheapflights is completely free to use, so you can start saving the moment you arrive.

Book with Flexibility

Our users can plan ahead with confidence and find flights with no change fees

Travel Smart

Millions of people come to us for their flight needs every year. We help make travel planning easy by providing useful insights and data-driven graphs that can inform your decisions.