How it works
A degree has 60 arcminutes and each arcminute has 60 arcseconds. Divide the minutes by 60 and the seconds by 3,600, then add them to the degrees. South and west coordinates are written as negative decimals. To go back, take the whole degrees, then turn the remainder into minutes and seconds.
Formula
negative for S or W
reverse: degrees = floor(abs(decimal)); minutes = floor((abs(decimal) - degrees) × 60); seconds = (abs(decimal) - degrees - minutes/60) × 3600
Sources
Example
40 deg 26 min 46 sec = 40 + 26/60 + 46/3600 = 40.446111. Check: 40.446111 -> 40 deg, 26 min, 46.0 sec.
Frequently asked questions
How do I convert DMS to decimal?
Add degrees, minutes/60 and seconds/3600.
How do I convert decimal to DMS?
Whole degrees, then 60 times the fraction for minutes, then 60 times the remaining fraction for seconds.
What about south and west?
Use a negative sign.
Why 60?
An arcminute is 1/60 of a degree and an arcsecond 1/60 of an arcminute.