how to convert decimal degrees to degrees minutes seconds (DMS)
Converting geographic coordinates from decimal degrees to degrees, minutes and seconds (DMS) is a common need for mapping, surveying, navigation and many datasets. This guide explains what DMS is, the formulas to convert back and forth, step-by-step manual methods, worked examples, common mistakes and how to use an online converter on Calculatorr to speed up the process.
what is decimal degrees and what is DMS
Decimal degrees (DD) express latitude and longitude as a single signed decimal number (for example: 40.7128°). Degrees, minutes, seconds (DMS) splits the angle into three components: degrees (°), minutes (') and seconds (") — for example: 40° 42' 46". DMS is often used in older maps, some GPS devices and legal descriptions; decimal degrees are more convenient for calculations and many mapping APIs.
formula to convert decimal degrees to DMS
The conversion follows these steps and simple arithmetic operations:
- Degrees = integer part of the decimal degrees (keep the sign for N/S or E/W).
- Minutes = integer part of (absolute fractional part * 60).
- Seconds = (absolute fractional part * 60 - minutes) * 60.
Written as formulas for a decimal degree value DD:
- D = trunc(DD)
- temp = abs(DD - D)
- M = trunc(temp * 60)
- S = (temp * 60 - M) * 60
example: convert 37.774929° to DMS (manual)
1) D = trunc(37.774929) = 37°
2) temp = abs(37.774929 - 37) = 0.774929
3) M = trunc(0.774929 * 60) = trunc(46.49574) = 46'
4) S = (46.49574 - 46) * 60 = 0.49574 * 60 = 29.7444"
Result: 37° 46' 29.7444" (commonly rounded to 37° 46' 29.74" or 37° 46' 30" depending on required precision)
handling negative coordinates and hemispheres
If DD is negative, keep the numeric conversion the same but mark hemisphere: latitude negative = S (south), longitude negative = W (west). Example: DD = -122.419416; D = -122, temp = 0.419416, yields 122° 25' 9.8976" W.
formula to convert DMS to decimal degrees
To convert back from DMS (D, M, S) to decimal degrees use this formula:
DD = sign * (|D| + M / 60 + S / 3600)
Where sign is -1 for S/W and +1 for N/E, and |D| is the absolute degrees value (useful if D was stored negative).
example: convert 37° 46' 29.7444" to decimal degrees
DD = 37 + 46 / 60 + 29.7444 / 3600
DD = 37 + 0.7666667 + 0.008262333 = 37.774929 approximately
step-by-step process to do the conversion manually (concise)
- Start with DD (for example, 51.507351).
- Take the integer part as degrees.
- Multiply the fractional part by 60; integer part is minutes.
- Multiply remaining fractional part by 60 to get seconds.
- Round seconds to desired precision (commonly 2 decimal places or nearest whole second).
- Assign hemisphere based on the original sign.
examples with different precision needs
1) High precision (surveying): keep seconds with 3+ decimals. Example: 34.052234 -> 34° 3' 8.0424".
2) Mapping APIs: 5-6 decimal places in decimal degrees are common; converting to DMS typically keeps seconds to 2 decimals.
3) Casual use/gps display: seconds often rounded to the nearest whole number (e.g., 34° 3' 8").
common mistakes and how to avoid them
- Forgetting the sign: always track positive/negative to set N/S or E/W—dropping the sign flips hemisphere.
- Rounding too early: don't round minutes before computing seconds—keep full precision until the final step.
- Confusing minutes and decimal minutes: 46 minutes is not 0.46 of a degree; convert via multiplication by 60 correctly.
- Using integer division incorrectly in spreadsheets: use functions that preserve decimals (e.g., FLOOR, INT, MOD) as appropriate.
how to use a calculatorr online converter
To save time and avoid manual errors use the coordinate conversion tools available at Calculatorr. Enter the decimal degree value, choose whether it's latitude or longitude (so the converter can show N/S or E/W) and pick desired seconds precision. The tool gives immediate DMS output and the reverse conversion too.
Search for the coordinate converter on Calculatorr and paste your coordinates directly. You can also convert lists by copying column data into the converter if the tool supports batch mode.
batch conversion tips for spreadsheets
In Excel or Google Sheets you can convert DD to DMS using formulas:
For cell A2 containing DD:
Degrees: =INT(A2) (or =TRUNC(A2))
Minutes: =INT(ABS(A2-INT(A2))*60)
Seconds: =(ABS(A2-INT(A2))*60-INT(ABS(A2-INT(A2))*60))*60
Combine into text: =TEXT(INT(A2),'0') & "° " & TEXT(INT(ABS(A2-INT(A2))*60),'00') & "' " & TEXT((ABS(A2-INT(A2))*60-INT(ABS(A2-INT(A2))*60))*60,'00.00') & '"'
how to interpret results and choose precision
Decide how precise your application needs to be:
- One-second precision (~30 meters at the equator) is enough for many navigation tasks.
- 0.1 second precision (~3 meters) is useful for higher-accuracy location work.
- For surveying, use sub-second precision or keep decimal degrees with many decimals.
Remember that actual ground accuracy depends on the data source (GPS receiver quality, map projection distortions), so match coordinate precision to the real accuracy of your source.
reverse example: convert 122° 25' 9.8976" W to decimal degrees
DD = -(122 + 25/60 + 9.8976/3600) = -(122 + 0.4166667 + 0.002749333) = -122.419416 approximately.
practical use cases where this conversion matters
- Preparing legal property descriptions or land survey reports that require DMS format.
- Interfacing with older GPS units or nautical charts that use DMS.
- Entering coordinates into mapping websites that accept DMS inputs.
- Sharing coordinates with collaborators who prefer one format over the other.
final tips and troubleshooting
- If seconds round to 60, increment minutes and set seconds to 0 (and increment degrees if minutes become 60).
- When converting multiple points, keep consistent rounding rules across the dataset.
- Verify converted coordinates visually on a map to catch sign errors or large conversion mistakes.
Use the coordinate conversion tools at Calculatorr for fast, accurate conversions and to avoid common manual errors.