Free calculator
DMS and decimal degrees converter
Every DMS notation parsed, every equivalent shown, and no 59′60″ rounding bug.
Everything is computed in your browser. Nothing you type is uploaded, stored, or logged.
Degrees, minutes and seconds to decimal
Minutes and seconds have to lie between 0 and 59.999…, which is what makes an entry such as 90 61 00 a rejection rather than a silent 91°01′00″. A parser that quietly carries an out-of-range minute hides a keying error at the point where it is cheapest to catch.
- Decimal degrees
- 34.212500°
- Canonical DMS
- 34°12′45.00″
- Radians
- 0.59712077
- Gradians
- 38.013889 gon
- Arc seconds
- 123,165.000
- Arc minutes
- 2,052.7500
Decimal degrees to DMS
- DMS
- 34°12′45.00″
- Sign
- positive
- Degrees
- 34
- Minutes
- 12
- Seconds
- 45.00
- Radians
- 0.59712077
- Arc seconds
- 123,165.000
The three figures are the parts the formatted string is assembled from. Reading them separately is the quickest way to see that a carry has been resolved: whole seconds never reach 60, and whole minutes never reach 60.
Batch conversion
1 of 8 lines could not be read. They are flagged in the table below rather than removed, because a silently dropped line produces a short column that still looks complete.
| Input | Decimal degrees | DMS | Radians | Arc seconds |
|---|---|---|---|---|
| 34-12-45 | 34.212500 | 34°12′45.00″ | 0.59712077 | 123,165.000 |
| 112 30 00 | 112.500000 | 112°30′00.00″ | 1.96349541 | 405,000.000 |
| 45d30m15s | 45.504167 | 45°30′15.00″ | 0.79419753 | 163,815.000 |
| 7:15:22.5 | 7.256250 | 7°15′22.50″ | 0.12664545 | 26,122.500 |
| 89° 59.5′ | 89.991667 | 89°59′30.00″ | 1.57065088 | 323,970.000 |
| 12.9999999 | 13.000000 | 13°00′00.00″ | 0.22689280 | 46,800.000 |
| -17.5 | -17.500000 | -17°30′00.00″ | -0.30543262 | -63,000.000 |
| 90 61 00 | Not readable as an angle — check the minutes and seconds | |||
An angle in surveying is written in degrees, minutes and seconds, and it has to be in decimal degrees before any trigonometry can touch it. That conversion is trivial arithmetic and a reliable source of error, because the notation is mixed-radix, because everybody types it differently, and because the rounding at the end has a trap in it that most spreadsheet formulas fall straight into.
The sexagesimal system, and why it survives
A degree is divided into sixty minutes of arc, and a minute into sixty seconds. The system is Babylonian, it is older than the decimal point, and it has outlasted every attempt to replace it because sixty divides evenly by two, three, four, five, six, ten, twelve, fifteen, twenty and thirty. A third of a degree is exactly twenty minutes. A third of a decimal degree is 0.333… forever.
decimal degrees = D + M/60 + S/3600
34°12′45″ = 34 + 12/60 + 45/3600 = 34.2125°That last point catches people. A negative angle of −34°12′45″ is minus the whole thing: the minutes and seconds are magnitudes, not signed contributions. Writing it as −34 + 12/60 + 45/3600 gives −33.7875°, which is wrong by nearly half a degree, and the sign of the error flips depending on which side of zero the angle sits.
The notations surveyors actually type
There is no standard keyboard notation for an angle, so a working converter has to accept all of the ones in circulation. Every form below is read identically by the fields above.
| Form | Example | Where it comes from |
|---|---|---|
| Hyphenated | 34-12-45 | the most common typed form, and the one data collectors export |
| Space separated | 34 12 45 | field books and hand-written notes |
| Symbol form | 34°12′45″ | printed documents, plats, published tables |
| Letter form | 34d12m45s | older COGO packages and command-line entry |
| Colon separated | 34:12:45 | spreadsheet and database exports |
| Decimal minutes | 34° 12.75′ | marine and aeronautical practice, and some GNSS receivers |
| Bare decimal | 34.2125 | already in decimal degrees; passed through unchanged |
Two rules keep that flexibility from becoming laxity. Minutes and seconds must lie below sixty, so an entry of 90 61 00 is rejected rather than quietly carried to 91°01′00″ — a keying error is cheapest to catch at the keyboard. And a field with more than three numeric groups is rejected outright, because it is not an angle at all.
The 59′60″ rounding bug
Converting decimal degrees back to DMS looks like three lines of code: take the whole degrees, multiply the remainder by sixty for the minutes, multiply that remainder by sixty for the seconds, and round the seconds for display. Written in that order it is wrong, and it is wrong exactly at the values you are most likely to be checking.
Take 12.9999999°. The whole degrees are 12. The minutes work out to 59, and the seconds to 59.99964. Round the seconds to two decimals for display and you print 12°59′60.00″ — an angle with sixty seconds in it, which does not exist. The naive code produced a display value that violates the very system it is displaying.
The same trap moves as you change the seconds precision, which is why the decimals selector matters more than it looks. An angle that displays cleanly at two decimals can carry at zero decimals and not at three, so the boundary case is not one fixed number — it is a whole family of them, one per precision setting.
Radians and gradians
Radians are the natural unit of angle: the arc length subtended on a unit circle. Every trigonometric function in every programming language takes radians, which is why the conversion sits between your DMS value and any computation you do with it.
radians = degrees · π / 180
gradians = degrees · 400 / 360 (a right angle is 100 gon)Gradians appear in European instrument settings and in some continental survey software, where a right angle of exactly 100 gon makes quadrant arithmetic clean. An instrument accidentally left in gon reports a 90° angle as 100, which is close enough to a plausible number that it can survive a whole day of observations before anyone notices.
The arc second and the constant ρ″
Error analysis in surveying is done in seconds of arc, because that is the resolution instruments are specified at and the unit angular closures are reported in. The bridge between an angular error and the linear error it causes is one constant.
ρ″ = 180 · 3600 / π = 206,264.806… arc seconds per radian
linear error ≈ distance · (angular error in seconds) / ρ″That approximation is the small-angle relation, and within the range of angles that survey errors occupy it is exact for every practical purpose. It is what lets you answer the question that actually matters on site: a 5″ direction error over a 900 ft sight line displaces the point by 900 · 5 / 206,265, which is 0.022 ft. Two hundredths of a foot, and therefore not the thing that ruined your closure.
Running the same arithmetic backwards is how a specification gets set. If a layout point has to land within 0.03 ft at 600 ft, the direction has to be good to 0.03 · 206,265 / 600, which is about 10″ — and that number tells you what class of instrument the job needs before anybody drives to it.
Significant figures in an angle
Precision in an angle is not counted in digits the way it is in a distance, because the units are not decimal. One second of arc is about 4.85 microradians, or roughly five parts per million. A distance quoted to five parts per million is 1,000.005 ft — seven significant figures. So an angle read to the nearest second carries about as much information as a distance read to the nearest hundredth of a foot over a thousand feet, and the two observations are well matched, which is why a total station specified at 5″ is usually paired with distance work at a hundredth.
The practical consequence is a display rule. Printing an angle to three decimals of a second implies a precision of about five parts per billion, which no field instrument delivers and no closed traverse justifies. Carry the extra digits through the computation, and print the number to the precision the observation actually had.
Questions
How do I convert DMS to decimal degrees by hand?
Divide the minutes by 60, divide the seconds by 3600, and add both to the whole degrees. So 34°12′45″ is 34 + 0.2 + 0.0125, which is 34.2125°. For a negative angle, do the arithmetic on the magnitude and apply the sign to the whole result.
Why does my spreadsheet show 59 minutes and 60 seconds?
Because it rounds the seconds for display after it has already split off the minutes, so a seconds value of 59.996 prints as 60.00 with the minute never incremented. The fix is to round the seconds to the display precision first and then carry: 60 seconds becomes zero seconds and one more minute, and 60 minutes becomes zero minutes and one more degree.
What input formats does this converter accept?
34-12-45, 34 12 45, 34°12′45″, 34d12m45s, 34:12:45, decimal-minute forms such as 34° 12.75′, and bare decimal degrees. A leading minus negates. Minutes and seconds must be under 60, and anything with more than three numeric groups is rejected as not an angle.
What is ρ″ and why is it 206,264.8?
It is the number of arc seconds in a radian, 180 · 3600 / π. It converts an angular error into the linear error it produces at a given distance: linear error is roughly the distance times the angular error in seconds divided by 206,265. That single constant is most of practical error propagation in surveying.
How many decimals should I keep on the seconds?
As many as the observation carried, and no more. One second of arc is about five parts per million, which is well matched to distances read to a hundredth of a foot over a thousand feet. Carry extra digits through intermediate computation to avoid accumulating rounding error, then report to the precision the instrument actually delivered.
Is anything I type sent anywhere?
No. Every conversion on this page runs in your browser. There is no server call, no logging and no storage, so the page keeps working with no network connection once it has loaded.
Sources
- National Geodetic Survey (NOAA), Geodetic Glossary — public domain; the definitions of arc measure, gon and the second of arc used here
- Montana Department of Transportation, Survey Manual, Appendix C — published state manual; the angular units and precision conventions in survey practice
- Washington State DOT, Highway Surveying Manual M 22-97, Chapter 11 — published state manual; angular closure reported in seconds of arc
Other calculators
All 10- Bearing ⇄ azimuthQuadrant bearings, azimuths, back sights and DMS arithmetic in one place.
- Latitude & departureCourse by course, with the signs made explicit and the totals kept for you.
- Traverse closurePaste your courses, get closure, precision and adjusted coordinates — with the whole computation sheet visible.
- Inverse & forwardThe two operations every COGO session is made of, plus the intersections.