Madrid Layover: Sol to the Palace From MAD

Puerta del Sol, Plaza Mayor, and the Royal Palace sit close enough together in central Madrid to cover on foot in an afternoon, with Gran Vía as an easy return stretch before a flight.
Puerta del Sol, Madrid’s Kilometre Zero
Puerta del Sol is Madrid’s busy central junction and the marked Kilometre Zero of Spain’s road network. The bronze bear reaching into a strawberry tree, the city’s own symbol, stands under the lit Tio Pepe sign at one edge of the square, and the whole space is where the old center’s foot traffic converges.

The Royal Palace’s forecourt, ticket or not
The Royal Palace of Madrid is the largest royal palace in Western Europe, and its facade and open forecourt are visible with no ticket at all. Entry tickets and guided tours get you into the state rooms and armory if the day’s window allows for it, but the exterior alone is the grandest visual payoff on this route either way.

Plaza Mayor’s arcaded square
Plaza Mayor is Madrid’s rectangular ceremonial square, built in stages from 1580 and ringed by uniform arcaded facades on all sides, with the equestrian statue of Philip III at its center. The paving under those arcades turns uneven in spots, one more reason to leave a rolling bag behind for this stretch, so store it before you start walking and pick it up on the way back.

The Metropolis Building crowns Gran Vía’s return stretch
The domed, statue-topped corner of the Metropolis Building marks the start of Gran Vía, the avenue that carries rooftop signs and constant motion east toward Plaza de Cibeles. It reads as a different Madrid than the palace side, so the walk back does not feel like simple backtracking.

If there’s time for a stop before the airport, Mercado de San Miguel sits just off Plaza Mayor, a covered iron-and-glass market for a quick tapas plate. A guided tour through it works too, if a plain visit feels rushed.
The Airport Express bus runs all night to Barajas
Collect your bag and leave more buffer than feels necessary. The Airport Express bus runs 24 hours from Cibeles and Atocha straight to Barajas, Metro Line 8 reaches the airport from Nuevos Ministerios, and Cercanías C1 also connects Atocha and Chamartín with Terminal 4. The ride itself usually runs about 30-40 minutes once you’re on the right service, so budget the rest for check-in and security.
A better use of dead time
Madrid rewards a short layover when the plan stays simple: one old-city sequence, one big landmark payoff, then a clean route back out. Storing the bag is what turns that into an actual afternoon in the city instead of a rushed transfer.
Frequently asked questions
What should I do during a layover in Madrid?
Store your bag centrally, near Sol or Callao, then walk Puerta del Sol, the Royal Palace, and Plaza Mayor, all within about fifteen minutes of each other on foot, before looping back via Gran Vía. Book Royal Palace tickets ahead only if you want the state rooms; the forecourt and facade cover the highlight on a shorter layover, and everything else on this route is free to walk into.
How long should I leave to get back to Barajas from central Madrid?
From central Madrid, the safest rule is to leave around 90 minutes before your flight if you're already packed and checked in, and closer to two hours if you are not. Metro Line 8 reaches the airport from Nuevos Ministerios, the Airport Express bus runs 24 hours from Cibeles and Atocha, and Cercanías C1 also connects Atocha and Chamartín with Terminal 4.
Is this route still worth doing if it rains?
Yes. Puerta del Sol and Gran Vía are still easy to cover in a drizzle, Plaza Mayor has arcades around the edges, and Mercado de San Miguel is close by if you want a covered food stop instead of lingering in open squares.
Should I try to tour the inside of the Royal Palace on a short layover?
Usually no, unless you have the longer end of the 6-hour window and a queue-free entry plan. Skip-the-line tickets cut the wait but not the tour length, so for a short layover, the exterior, the forecourt, and the surrounding west-side viewpoints give you the payoff without risking your return buffer.
Is central Madrid walkable without a taxi?
Yes. Once you're out of the storage point, Sol, Plaza Mayor, the Royal Palace, and Gran Vía are all flat and connected by direct streets, so this whole itinerary covers on foot with no transit needed in between.