StatGardenREF. DESK
Calculators/Conversion/Degrees, minutes, seconds ↔ decimal degrees
Conversion

Degrees, minutes, seconds ↔ decimal degrees calculator

Converts a geographic coordinate between decimal degrees and degrees-minutes-seconds format.

What this calculator does

Degrees, minutes, seconds ↔ decimal degrees works out converts a geographic coordinate between decimal degrees and degrees-minutes-seconds format. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaDecimal = degrees + minutes/60 + seconds/3600 (sign kept from degrees); degrees = ⌊|decimal|⌋, minutes = ⌊(|decimal| − degrees)×60⌋, seconds = the remainder ×3600

The inputs explained

FieldWhat to enter
DirectionChoose from Decimal degrees → D° M′ S″, D° M′ S″ → decimal degrees.
Decimal degreesA number. Starts at 40.7128.
DegreesA number. Starts at 40.
MinutesA number. Starts at 42.
SecondsA number. Starts at 46.08.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with decimal degrees

Every other input is held at the calculator’s starting values while decimal degrees varies. Select any row to load that scenario into the calculator.

How the answer changes with decimal degrees
Decimal degreesDMSDecimal degrees usedDegrees
20.3620° 21′ 36.00″20.36020
30.5330° 31′ 48.00″30.53030
40.7140° 42′ 36.00″40.71040
61.0761° 4′ 12.00″61.07061
81.4381° 25′ 48.00″81.43081
122122° 0′ 0.00″122.000122