Free Tool · 40 Cities
Last verified: September 2026

Distance Calculator

Road distance and drive time between any two of 40 Spanish cities — Madrid, Barcelona, Valencia, Seville, and major regional centres.

Where These Numbers Come From

Spain doesn’t publish a public town-to-town road distance matrix, but its motorway network has an unusually clean structure that makes sourcing easier than in most countries: six radial autovías (A-1 through A-6) fan out from Madrid to the rest of the country, each with an official length documented by Spain’s Ministry of Public Works and Transport. This tool uses three of them directly: Madrid to Valencia via the A-3 (355km, the shortest of the six), Madrid to Barcelona via the A-2 (504km, which also exactly matches an independent car-rental guide’s figure for the same route), and Madrid to A Coruña via the A-6 (590km).

Valencia to Seville (541km) doesn’t run along a single radial autovía, so it’s sourced from a single detailed driving-distance guide instead. Every other route among this tool’s 40 cities falls back to the Haversine-based GPS estimate, calibrated against Nigeria’s full verified road matrix.

What Actually Slows You Down on Spanish Roads

Spain’s autovía network is generally excellent and, unlike many EU countries, largely toll-free — the older AP-prefixed autopistas that do charge tolls run parallel to free autovía alternates in most cases. Summer (July-August) sees heavy holiday traffic on routes toward the Mediterranean coast and the south, with the Dirección General de Tráfico (DGT) publishing an “operación salida” traffic forecast calendar for the worst travel days. Mountain passes crossing the Sistema Ibérico (between Madrid and the east coast) and the Sierra Morena (between the centre and Andalusia) can add time in poor weather. As with any calculator, treat the figures here as a planning baseline and check current DGT traffic conditions before a long trip.

Reviewed by Evelyn John, Auto Sales Expert. Verified routes sourced from official Spanish autovía lengths (Ministry of Public Works and Transport, via Wikipedia). All other routes are Haversine-based estimates — see FAQ below.

Distance From Madrid to Every City, Ranked

All 39 other cities in this tool, closest to farthest from Madrid.

#TownRegion/StateRoad km
1Tetuán de las VictoriasSpain6 km
2San Blas-CanillejasSpain10 km
3HortalezaSpain10 km
4AlcorcónSpain16 km
5ValladolidSpain230 km
6BurgosSpain304 km
7AlbaceteSpain317 km
8ValenciaSpain355 km
9LogroñoSpain356 km
10ZaragozaSpain389 km
11Vitoria-GasteizSpain403 km
12CórdobaSpain420 km
13Castelló de la PlanaSpain446 km
14PamplonaSpain450 km
15BilbaoSpain459 km
16BadajozSpain466 km
17SantanderSpain482 km
18MurciaSpain496 km
19ElcheSpain500 km
20San SebastiánSpain500 km
21BarcelonaSpain504 km
22GranadaSpain510 km
23AlicanteSpain511 km
24OviedoSpain529 km
25GijónSpain544 km
26SevilleSpain554 km
27CartagenaSpain556 km
28A CoruñaSpain590 km
29AlmeríaSpain598 km
30MálagaSpain603 km
31MarbellaSpain646 km
32VigoSpain675 km
33Jerez de la FronteraSpain675 km
34Horta-GuinardóSpain733 km
35Nou BarrisSpain735 km
36PalmaSpain796 km
37Las Palmas de Gran CanariaSpain2,347 km
38Santa Cruz de TenerifeSpain2,368 km
39La LagunaSpain2,371 km

Distance Calculator FAQ — Spain

How far is Madrid from Barcelona?

About 504km via the A-2/AP-2, an official autovía length that also exactly matches an independent source — typically 6+ hours.

How far is Madrid from Valencia?

About 355km via the A-3, the shortest of Madrid's six radial autovías.

Is there an official Spanish distance chart?

No public matrix, but Spain's Ministry of Public Works documents official lengths for the six radial autovías from Madrid, used here directly.

How far is Madrid from Seville?

This route currently uses this tool's GPS-based estimate rather than a verified figure - cross-check with a live navigation app.

Can I calculate fuel cost for my trip?

Yes — pick a vehicle type and current pump price (€/litre) above; it converts road distance directly into estimated litres and cost.

More Free Tools