You've got a coordinate written as 40° 26' 46" N and you need it as a plain decimal number for a mapping tool, a GPS device, or a spreadsheet. It looks like it should just be "40.2646" — drop the symbols, keep the digits. It isn't. That one assumption is the most common reason DMS-to-decimal conversions come out wrong.
The formula
Decimal degrees are built from three parts, each scaled down by a factor of 60:
Minutes and seconds are base-60, not base-100 — the same system clocks use. A minute is 1/60th of a degree, and a second is 1/60th of a minute (so 1/3600th of a degree). That's the entire reason you can't just tack the minutes and seconds onto the degrees as decimal digits.
A worked example
Take 40° 26' 46" N — a coordinate near Philadelphia:
- Degrees: 40
- Minutes: 26 ÷ 60 = 0.4333...
- Seconds: 46 ÷ 3600 = 0.01278...
- Sum: 40 + 0.4333 + 0.0128 ≈ 40.4461°
Compare that to the naive (wrong) approach: reading "26 minutes 46 seconds" as ".2646" and getting 40.2646°. That's off by about 0.18 degrees — roughly 12 miles (20 km) of real-world distance at this latitude. For anything beyond a casual estimate, that error matters.
Don't forget the sign
Direction letters (N, S, E, W) determine whether the decimal value is positive or negative, and it's easy to drop this when converting:
- North and East are positive
- South and West are negative
So 40° 26' 46" N is +40.4461, while 73° 59' 39" W (a longitude near the same location) becomes -73.9942, not +73.9942. Mapping APIs and GPS devices expect the sign — feed them a positive longitude in the Western hemisphere and your point lands on the wrong side of the planet.
Going the other way: decimal back to DMS
The reverse conversion uses the same relationship, worked backwards:
- The whole-number part is the degrees. 40.4461° → 40°
- Multiply the decimal remainder by 60 to get minutes. 0.4461 × 60 = 26.766 → 26'
- Multiply that remainder by 60 to get seconds. 0.766 × 60 ≈ 45.96" → 46"
Result: 40° 26' 46" — matching the original. (The tiny discrepancy between 45.96" and the original 46" is just rounding in a hand-worked example; a calculator carries full precision through every step.)
Why this still matters in a GPS-everywhere world
Modern consumer GPS and mapping tools — Google Maps, most phone apps — default to decimal degrees internally. But DMS notation hasn't gone away: it's still standard in surveying, aviation charts, maritime navigation, and plenty of older government and scientific datasets. Anyone pulling coordinates from an older map, a legal property description, or a navigation chart runs into this conversion sooner or later.