DMS to Decimal Degrees Converter (and DDM)

DMS to Decimal Degrees Converter (and DDM)

Convert coordinates between degrees-minutes-seconds, degrees and decimal minutes and decimal degrees, in every direction, for latitude and longitude — and see what each decimal place is actually worth in metres at your own latitude, computed on the WGS 84 ellipsoid.

DMS, DDM and decimal degrees

Three formats, both axes, with the precision in metres
This is not cosmetic. A degree of latitude is very nearly constant; a degree of longitude shrinks with the cosine of the latitude and is half its equatorial size by 60° N.
The letter and the sign are the same information. N and E are positive, S and W negative, which is the convention every mapping library uses.
Whole minutes if you are giving seconds as well, decimal minutes if you are not.
Needed only when you are converting a longitude, because the size of a degree of longitude depends on where you are.
A quarter graticule — a geometry, not a circuit. The horizontal lines are parallels of latitude and they stay the same distance apart all the way up, which is why a degree of latitude is very nearly constant. The lines running up the page are meridians, and they converge towards the pole: the drawing is built from the cosine of the latitude, so the convergence and the shortening of each parallel are both real rather than decorative. That convergence IS the reason a degree of longitude shrinks. The cross is drawn at about 40 degrees north; the figures below are computed for the latitude you entered, on the WGS 84 ellipsoid.
40.446195°Example

40.446195 ° N as decimal degrees, on the WGS 84 ellipsoid

Advertisement

The formats are arithmetic; the precision is geodesy

DD = d + m/60 + s/3600  ·  mlat = (π/180) a(1−e²) / (1−e²sin²φ)3/2  ·  mlon = (π/180) a cosφ / √(1−e²sin²φ)
a
WGS 84 semi-major axis, 6 378 137 m exactly
e squared
first eccentricity squared, 6.694 379 990 14 × 10⁻³, derived from the defining flattening 1/298.257 223 563
phi
the latitude. For a latitude conversion it is the value itself; for a longitude you have to say where you are, which is why the page asks
m lat
metres per degree of latitude — the meridian arc. Varies by only 1% over the whole earth
m lon
metres per degree of longitude — an arc of the parallel. Falls to zero at the poles

Worked example

40.446195 ° N as decimal degrees, on the WGS 84 ellipsoid
North, so the sign is positive: 40.446195 °
The whole degrees are 40; the remainder 0.446195 × 60 = 26.7717 minutes, which is the DDM form 40° 26.7717′
Taking 26 whole minutes leaves 0.7717 of a minute, which is × 60 = 46.302 seconds — the DMS form 40° 26′ 46.302″
At this latitude the meridian radius of curvature is 6,362,308 m, so one degree of latitude is 111,043.2 m and one second is 30.85 m
A degree of LONGITUDE here is only 84,835.4 m, 76.4% of the latitude figure — which is why six decimal places do not buy the same precision on the two axes

What a decimal place is worth, in metres, at your latitude

Latitudekm per degree of latitudem per arcsecond of latitudem in 0.001° of latitudekm per degree of longitudem per arcsecond of longitudem in 0.001° of longitudeLongitude / latitude
0.0000 °110.574330.715110.57111.319530.922111.321.0067
15.0000 °110.648730.736110.65107.550529.875107.550.9720
30.0000 °110.852430.792110.8596.486326.80296.490.8704
45.0000 °111.131830.870111.1378.846821.90278.850.7095
51.4772 °111.257430.905111.2669.475219.29969.480.6245
60.0000 °111.412330.948111.4155.800015.50055.800.5008
75.0000 °111.618431.005111.6228.90208.02828.900.2589
Computed from the WGS 84 ellipsoid, not from a spherical earth: a degree of latitude runs from 110.574 km at the equator to 111.694 km at the poles because the meridian’s radius of curvature changes, and these figures agree with the published degree-length table to four decimal places of a kilometre. Read the last column and the whole point of the table appears. An arcsecond of latitude is about 31 m everywhere. An arcsecond of longitude is 30.9 m at the equator and 15.5 m at 60° N — half. Which means that six decimal places of latitude and six of longitude do not describe the same precision, and quoting “111 km per degree” without saying which axis is wrong for every longitude outside the tropics.

Three formats for one point, and who uses which

FormatThe Empire State BuildingWho uses itWhat it implies
Decimal degrees (DD)40.748440, -73.985664Everything computational — GIS, GPS APIs, mapping libraries, GeoJSONSix places is about 11 cm of latitude. Unambiguous, and the only format that arithmetic can be done in directly
Degrees, minutes, seconds (DMS)40° 44′ 54.38″ N, 73° 59′ 8.39″ WLand survey, legal descriptions, older charts, anything printed before about 1990One whole second of latitude is about 31 m, so DMS rounded to the second locates you inside a box roughly 31 m by 24 m at this latitude
Degrees and decimal minutes (DDM)40° 44.7264′ N, 73° 59.1398′ WMarine and aviation — chart plotters, AIS, VHF position reports, ICAO and IHO practiceMinutes are natural at sea because one minute of latitude is one nautical mile. Three decimal places of a minute is about 1.9 m
Hemisphere as a letter or as a sign40.748440 N is the same as +40.748440Both, interchangeablyS and W are negative. Losing the sign is the commonest single error in coordinate handling and puts you in the wrong hemisphere, not slightly off
The formats carry identical information and different implied precision, which is the thing to hold on to. A DMS reading given to the whole second is not more precise than five decimal places of a degree just because it has more characters in it — it is less. And a marine position given in decimal minutes is not an odd habit: one minute of latitude is one nautical mile, by construction, which is why the nautical mile was defined as 1 852 m in the first place. This page computes that arcminute from the ellipsoid and gets 1,852.2 m at 45° latitude.

How many places to keep, and what each one costs you if you drop it

Decimal placesDegreesLatitude, metresLongitude at 51.5° N, metresGood enough for
01111,257.869,440.5Which country, roughly
10.111,125.86,944.1Which town
20.011,112.6694.4Which neighbourhood
30.001111.369.4Which street, and the usual limit of a postcode-level geocode
40.000111.1266.944Which building
50.000011.1130.694Which part of the building — and about the limit of a consumer GNSS fix
60.0000010.1110.069Sub-metre. Meaningful only with survey-grade or corrected GNSS
70.00000010.0110.007Nothing. This is noise dressed as precision
The last row is the reason this table exists. Storing seven or eight decimal places of latitude does not make a position more accurate; it makes a database column wider and invites a reader to believe a fix that came from a phone to a centimetre. A consumer GNSS receiver in the open is good to a few metres, which is four to five decimal places. Note also the two middle columns, which differ by a factor of 1.6 at the latitude of London: the same number of decimal places buys you less precision in longitude than in latitude everywhere except the equator, and buys you almost none at all near the poles.

Three formats, and the question nobody else answers

Three formats, one point, and three different implied precisions. Decimal degrees is what every mapping library, GPS API and GeoJSON file uses, because it is the only one you can do arithmetic in. Degrees, minutes and seconds is what land survey, legal descriptions and older charts use. Degrees and decimal minutes — 40° 26.7717′ — is what marine and aviation practice actually uses, and it is the one most converters forget, even though it is on the screen of every chart plotter afloat. The conversions between them are trivial and this page does them in every direction. The part that is not trivial, and that almost nothing else will tell you, is how many digits are worth writing down.

A digit is a distance, and the distance depends on where you are. One whole second of latitude is about 31 m — 30.72 m at the equator, 31.03 m at the poles, so nearly constant. One thousandth of a degree is about 111 m. That is the whole basis for choosing a precision, and it means a DMS reading given to the nearest second is less precise than five decimal places of a degree, despite looking more official.

Longitude is the one that moves, and it moves a lot. A degree of longitude is an arc of a parallel of latitude, and the parallels shrink to nothing at the poles: their radius goes as the cosine of the latitude. So a degree of longitude is 111.32 km at the equator, 78.85 km at 45°, 69.44 km at the latitude of London and 55.80 km at 60° — exactly half the equatorial figure, because the cosine of 60° is exactly a half. Which means that six decimal places of latitude and six of longitude are not the same amount of precision anywhere except on the equator, and that a rule of thumb quoting “111 km per degree” is wrong for every longitude in the temperate world. This page asks for your latitude when you are converting a longitude for exactly that reason, and computes the figure for the latitude you give it.

Why a degree of latitude changes at all. On a sphere it would not. On WGS 84 — the ellipsoid GPS actually uses — the meridian is an ellipse, and the radius of curvature of an ellipse is smallest where it is most sharply curved. The earth is flattened at the poles, so the meridian is less curved there and a degree along it is longer: 110.574 km at the equator against 111.694 km at the pole, a spread of one per cent, which is the flattening. Both radii of curvature are on this page as outputs, computed from the two WGS 84 defining constants — a = 6 378 137 m and 1/f = 298.257 223 563 — and nothing else. They reproduce the published degree-length table to better than a metre.

The nautical mile is hiding in here. One minute of latitude comes out at 1,852.2 m at 45° latitude against the nautical mile’s defined 1 852 m, which is not a coincidence: the mile was chosen to be a minute of arc and then fixed at a round metric figure in 1929 so that everybody could agree on it. That is why marine positions are quoted in decimal minutes — a difference in minutes of latitude is a distance in nautical miles, with no arithmetic in between.

And the sign. South and west are negative. The hemisphere letter and the sign carry the same information, and losing one of them is the commonest single failure in coordinate handling — it does not put you slightly out, it puts you in the wrong hemisphere. This page takes the hemisphere as an explicit choice and shows the sign it corresponds to, so that the thing you paste into a mapping library is the thing you meant.

For the angle arithmetic itself — degrees, gradians, radians and the rest — and for the slope side of the same subject, the slope and grade converter handles the five different ways the trades write a gradient down.

Advertisement

Frequently asked questions

How do I convert DMS to decimal degrees?

Degrees plus minutes over sixty plus seconds over three thousand six hundred, and then make it negative if it is south or west. So 40° 26′ 46.302″ N is 40 + 26/60 + 46.302/3600 = 40.446195. The only place this goes wrong is the sign: south and west are negative, and dropping the letter is how a point ends up in the wrong hemisphere rather than slightly out of place.

What is DDM, and why do boats and aircraft use it?

Degrees and decimal minutes — 40° 26.7717′ rather than 40° 26′ 46.30″. It is what chart plotters, AIS and VHF position reports use, and the reason is that one minute of latitude is one nautical mile by construction. A position in decimal minutes can be read as a distance without any arithmetic, which matters when you are navigating rather than computing. The ellipsoidal figure for a minute of latitude at 45° comes out at 1,852.2 m against the nautical mile’s defined 1 852 m.

How many decimal places of latitude and longitude do I need?

It depends what you are doing and where you are standing, which is why almost no converter will tell you. At the latitude of London one thousandth of a degree is 111 m of latitude and 69 m of longitude; one hundred-thousandth is about a metre and 0.7 m. Five places is the honest limit of a consumer GNSS fix. Six is sub-metre and needs corrected or survey-grade equipment to mean anything. Seven is noise.

How many metres is one second of latitude?

About 31 m, and very nearly the same everywhere: 30.72 m at the equator and 31.03 m at the poles, because the meridian’s radius of curvature grows slightly as the earth flattens towards the poles. Longitude is the one that moves: an arcsecond of longitude is 30.92 m at the equator, 19.29 m at London and 8.03 m at 75° N.

Why does a degree of longitude change size but a degree of latitude not?

Because they are measured along different curves. A degree of longitude is an arc of a parallel of latitude, and the parallels are circles that shrink to nothing at the poles — their radius goes as the cosine of the latitude, so a degree of longitude at 60° is half what it is at the equator, exactly. A degree of latitude is an arc of the meridian, which is a full ellipse from pole to pole and always has roughly the same radius of curvature: it varies only by one per cent, from 110.574 to 111.694 km, and that one per cent is the flattening of the earth.

Are these figures for a sphere or an ellipsoid?

An ellipsoid — WGS 84, the one GPS uses. A degree of latitude on a sphere would be the same everywhere; on WGS 84 it runs from 110.574 km at the equator to 111.694 km at the poles. This page computes the meridional radius of curvature and the radius in the prime vertical from the two WGS 84 defining constants and shows both, and the answers match the published degree-length table to better than a metre.

Can I just put a decimal point in the minutes to get DDM?

You can go from DMS to DDM by dividing the seconds by sixty and adding them to the minutes, yes — 26′ 46.302″ becomes 26.7717′. What you cannot do is treat 40° 26.77′ as though the 26.77 were seconds, or as though it were 40.2677°, and both mistakes are common enough to have sunk boats. If a number after the degree symbol is between 0 and 60 it is minutes; if it is a fraction of a degree it belongs after the decimal point in the degrees.

Related calculators

References

  1. National Geospatial-Intelligence Agency. Department of Defense World Geodetic System 1984, NGA.STND.0036_1.0.0_WGS84. The defining parameters used here are the semi-major axis a = 6 378 137 m exactly and the flattening 1/f = 298.257 223 563 exactly, from which the first eccentricity squared is 6.694 379 990 14 × 10⁻³. Every metres-per-degree figure on this page is computed from those two numbers and nothing else.
  2. The meridional and prime-vertical radii of curvature used here are the standard ellipsoidal expressions M = a(1−e²)/(1−e²sin²φ)^{3/2} and N = a/√(1−e²sin²φ); see Snyder JP, Map Projections: A Working Manual, USGS Professional Paper 1395 (1987), § Ellipsoidal parameters. A US Government work. The figures this page computes reproduce the published table of longitudinal degree lengths — 111.3195 km at the equator, 96.4863 at 30°, 78.8468 at 45°, 69.4752 at Greenwich’s latitude and 55.8000 at 60° — to four decimal places of a kilometre.
  3. International Hydrographic Organization, First International Extraordinary Hydrographic Conference, Monaco 1929: the international nautical mile is 1 852 m exactly. This page’s ellipsoidal figure for one minute of latitude at 45° is 1,852.2 m, which is the historical origin of that definition.
  4. ISO 6709, Standard representation of geographic point location by coordinates, cited by number only: it is a copyrighted standard and its text and tables are not reproduced here. It is the reference for the ordering (latitude before longitude) and for the sign convention that this page follows.
  5. International Civil Aviation Organization, Annex 4 and Annex 15, and IHO S-4 chart specifications, for the practice of quoting positions in degrees and decimal minutes in aviation and at sea rather than in degrees-minutes-seconds. Cited as practice; the documents themselves were not fetched for this batch and the statement rests on the published conventions of chart plotters and AIS message formats, which use decimal minutes.
  6. National Institute of Standards and Technology. NIST Handbook 44, Appendix C, General Tables of Units of Measurement. The US liquid gallon is 231 cubic inches exactly and the international inch is 25.4 mm exactly; every volume on this page descends from those two definitions.