Degrees Minutes Seconds (DMS) Converter Formula
Understand the math behind the degrees minutes seconds (dms) converter. Each variable explained with a worked example.
Formulas Used
Deg Part
deg_part = floor(abs(decimal_deg))Min Part
min_part = floor(mod(abs(decimal_deg) * 60, 60))Sec Part
sec_part = mod(abs(decimal_deg) * 3600, 60)Radians
radians = decimal_deg * pi / 180Variables
| Variable | Description | Default |
|---|---|---|
decimal_deg | Decimal Degrees(deg) | 45.7625 |
How It Works
Degrees, Minutes, Seconds (DMS)
Conversion
1 degree = 60 minutes = 3600 seconds
Decimal to DMS
1. Degrees = integer part of the decimal 2. Multiply the fractional part by 60 → Minutes = integer part 3. Multiply the remaining fraction by 60 → Seconds
Example: 45.7625°
Worked Example
Convert 45.7625° to DMS.
decimal_deg = 45.7625
- 01Degrees = floor(45.7625) = 45°
- 02Remaining = 0.7625 × 60 = 45.75
- 03Minutes = 45'
- 04Remaining = 0.75 × 60 = 45
- 05Seconds = 45"
- 06Result: 45° 45' 45"
Ready to run the numbers?
Open Degrees Minutes Seconds (DMS) Converter