Madrid to Castellón distance
Madrid and Castellón are 315 km (196 mi) apart in a straight line and 423 km (263 mi) apart by road: about 4 hr 40 min of driving without stops, mostly on the A-3 and the AP-7. Below you’ll find the route map, both halfway points, the bearing and where every figure comes from.
By the All Map Tools Team
- By road
- 423 km (263 mi)
- Driving time
- 4 hr 40 min
- Straight line
- 315 km (196 mi)
- Driving route
- Straight line
- Straight-line midpoint
- Halfway by road
Lambert azimuthal equal-area projection centered on the midpoint. Route: FOSSGIS OSRM with data © OpenStreetMap contributors, calculated on November 1, 2026; simplified line.
The figures
| Figure | Value |
|---|---|
| Straight line | 315 km (196 mi) geodesic on the WGS84 ellipsoid |
| By road | 423 km (263 mi) fastest driving route (OSRM) |
| Driving time | 4 hr 40 min no stops, no traffic |
| Road detour | +34% 1.34 times the straight line |
| Average speed | 90 km/h (56 mph) along the route, without stops |
| Bearing | 98° (east) leaving Madrid toward Castellón |
| Midpoint | 40.2170° N, 1.8591° W near Beamud (Cuenca) |
| Halfway by road | Near Motilla del Palancar (Cuenca) 211 km from each city by road |
| Time difference | None both share the same time |
| Elevation | Madrid: 645 m (2,116 ft) · Castellón: 28 m (92 ft) IGN (Spain) |
| Population | Madrid: 3,506,730 · Castellón: 183,711 INE population register, January 1, 2025 |
Madrid to Castellón by road
The fastest driving route is 423 km (263 mi) long and takes about 4 hr 40 min without stops or traffic. It runs mostly on the A-3 (333 km), the AP-7 (37.7 km), and the A-7 (36.8 km).
It goes through 3 autonomous communities: the Community of Madrid (71.7 km), Castilla–La Mancha (176 km), and the Valencian Community (175 km). That’s an average of 90 km/h (56 mph). Spain’s traffic authority (DGT) recommends a break every two hours or 200 km: with 2 stops of 20 minutes, the trip takes about 5 hr 20 min. The time is OSRM’s estimate with OpenStreetMap data: no traffic and speeds somewhat below the limits, so real trips can differ.
Straight-line distance and bearing
In a straight line, the shortest distance over the Earth’s surface, Madrid and Castellón are 315 km (196 mi) apart. That’s the geodesic on the WGS84 ellipsoid, the distance “as the crow flies”.
The road is 34% longer: for every 100 km in a straight line you drive 134. That’s a big detour: the fastest route strays quite far from the straight line. Of the 120 Spanish driving pairs in this series, it ranks 16th for detour (the average is 24%).
From Madrid, Castellón lies to the east (bearing 98°), and from Castellón, Madrid lies to the west. The straight line reaches Castellón on a bearing of 100°: on a sphere the bearing keeps changing along the way, which is why the shortest route looks slightly curved on a flat map.
Halfway between Madrid and Castellón
Halfway along the straight line, 157 km (97.8 mi) from each city, is the point 40.2170° N, 1.8591° W. It falls near Beamud (Cuenca, pop. 45), 4.2 km away. The nearest town of 20,000 people or more is Cuenca (pop. 53,600), 27.8 km away.
By road, the halfway point is 211 km (131 mi) from each city, near Motilla del Palancar (Cuenca, pop. 6,432), 3.0 km away. The nearest town of 20,000 people or more is Albacete (pop. 175,400), 59.8 km away. The two midpoints are 76.0 km apart: if you want to meet halfway, the one on the road is the useful one.
By plane
No flight time is given: under 500 km (311 miles) in a straight line, time at the airport outweighs time in the air.
The two cities
Madrid sits at 645 m (2,116 ft) and Castellón at 28 m (92 ft), 617 m (2,024 ft) lower.
Madrid has 3.5 million people and Castellón 183,711 people (INE population register, January 1, 2025).
Frequently asked questions
How many kilometers is it from Madrid to Castellón?
315 km (196 mi) in a straight line and 423 km (263 mi) by road on the fastest route (mostly on the A-3 and the AP-7).
How long is the drive from Madrid to Castellón?
About 4 hr 40 min without stops or traffic, according to OSRM with OpenStreetMap data; with 2 stops of 20 minutes, about 5 hr 20 min.
Where is the halfway point between Madrid and Castellón?
In a straight line, near Beamud (Cuenca). By road, 211 km from each city, near Motilla del Palancar (Cuenca).
Which city is higher, Madrid or Castellón?
Madrid, at 645 m (2,116 ft); Castellón sits at 28 m (92 ft).
Which direction is Castellón from Madrid?
East: the straight line leaves Madrid on a bearing of 98° (0° is north and 90° is east).
Measure it yourself on the map
The same two cities, already set up in the tools: move the points, get the route by bike or on foot and download the map.
- Distance between two points Measure the distance between any two places or points on the map, in miles or kilometers.
- Straight line vs driving distance Compare the as-the-crow-flies distance with the real driving distance and see how much the road adds.
- Halfway point Find the exact halfway point between two places and see it on the map, ready to share.
Similar pairs
The ones in this series whose cities are closest to these two, in case another one suits you better.
- Madrid to Valencia 302 km straight line · 355 km by road · 3 hr 55 min Valencia, 64.3 km from Castellón
- Madrid to Teruel 220 km straight line · 311 km by road · 3 hr 45 min Teruel, 99.4 km from Castellón
- Madrid to Benidorm 371 km straight line · 460 km by road · 5 hr 5 min Benidorm, 161 km from Castellón
- Madrid to Tarragona 425 km straight line · 541 km by road · 5 hr 55 min Tarragona, 167 km from Castellón
More distances from Madrid
All distances- Madrid to Ciudad Real 161 km straight line · 190 km by road · 2 hr 30 min
- Madrid to Cuenca 138 km straight line · 168 km by road · 2 hr
- Madrid to Guadalajara 50.4 km straight line · 56.6 km by road · 44 min
- Madrid to Huelva 451 km straight line · 616 km by road · 6 hr 40 min
- Madrid to Huesca 335 km straight line · 384 km by road · 4 hr 15 min
- Madrid to Jaén 295 km straight line · 334 km by road · 3 hr 50 min
More distances from Castellón
Sources
- Driving route: FOSSGIS OSRM, car profile (calculated on November 1, 2026) · FOSSGIS e.V.
- Roads, streets and places · © OpenStreetMap contributors (ODbL)
- Straight line, bearings and midpoint (geodesics on the WGS84 ellipsoid) · GeographicLib (C. F. F. Karney)
- Location and elevation of Spanish cities (gazetteer and DEM) · Instituto Geográfico Nacional (CC BY 4.0)
- Population register, January 1, 2025 · INE (Spain)
- Places near the midpoints: All Map Tools gazetteer (GeoNames, INE, IGN and Census) · All Map Tools
- Time zones (timezone-boundary-builder outlines and the IANA database) · © OpenStreetMap contributors (ODbL)
- Map: provinces (IGN), states (US Census Bureau) and countries (Natural Earth) · IGN, Census and Natural Earth
- Methodology