Home / Coordinates and Location Formats

How to Convert Latitude and Longitude to Decimal Degrees

A hazy sunset view over the Grand Canyon

Photo: Alex Moliski / Pexels

Decimal degrees is the format phones, web maps, forms, and spreadsheets all speak. But coordinates arrive in older costumes: degrees, minutes, and seconds (DMS) on charts, surveys, and Wikipedia infoboxes, and degrees with decimal minutes (DDM) from boats and handheld GPS units. Converting them is one small formula and one sign decision, and both are taught here with the arithmetic shown in full, on real places, so you can check every digit yourself or in the Coordinate Converter on this page.

The converter above does this instantly and is the right tool for one pair in a hurry. Learn the manual method anyway for the day the pair arrives on paper, in a book, or in a spreadsheet column of five hundred, because the spreadsheet case is where this skill pays rent.

Interactive tool

Coordinate Converter

Convert latitude and longitude between decimal degrees, degrees minutes seconds, degrees decimal minutes, and plus codes. Everything updates as you type.

From decimal degrees

Degrees minutes seconds40° 41' 21.00" N, 74° 02' 40.00" W
Degrees decimal minutes40° 41.350' N, 74° 02.667' W
Plus code (11 digits)87G7MXQ4+M67
Plus code (10 digits)87G7MXQ4+M6

Your latitude breaks down as 40 degrees, 41 minutes, 21.00 seconds. One degree is 60 minutes, one minute is 60 seconds, so a second of latitude is about 31 meters on the ground.

From degrees minutes seconds

Decimal degrees40.689167, -74.044444
Degrees decimal minutes40° 41.350' N, 74° 02.667' W
Plus code (11 digits)87G7MXQ4+M67

Conversions use the WGS 84 coordinate system, the same one GPS satellites and phone maps use. Plus codes are computed with the open location code algorithm, the same method Google Maps uses.

The Formula

For degrees, minutes, and seconds:

Decimal degrees = degrees + (minutes / 60) + (seconds / 3600), then apply the sign.

For degrees and decimal minutes, drop the last term:

Decimal degrees = degrees + (minutes / 60), then apply the sign.

The sign rule, which gets its own step below because it causes most of the world's conversion errors: north and east are positive, south and west are negative. The letters and the sign are the same information; the conversion is where they trade places.

Worked Example 1: DMS to Decimal, the Grand Canyon

Convert the Grand Canyon South Rim Visitor Center: 36° 03' 42.84" N, 112° 06' 27.72" W.

Latitude. Degrees: 36. Minutes: 3 / 60 = 0.05. Seconds: 42.84 / 3600 = 0.0119. Add them: 36 + 0.05 + 0.0119 = 36.0619. The letter is N, so the sign is positive: 36.061900.

Longitude. Degrees: 112. Minutes: 6 / 60 = 0.1. Seconds: 27.72 / 3600 = 0.0077. Add them: 112 + 0.1 + 0.0077 = 112.1077. The letter is W, so the sign is negative: -112.107700.

The converted pair, 36.061900, -112.107700, pasted into any map, lands on the South Rim. Check it in the converter above; it will restyle your input back to the DMS you started from, which is the round trip every conversion should survive.

Step Zero, Taught Separately: The Sign

Do the sign as its own deliberate step, after the arithmetic, every time. Most conversion failures are not arithmetic failures; they are a W that never became a minus, somewhere between the chart and the form. The stakes are not small. A Grand Canyon longitude entered as +112.1077 instead of -112.1077 puts the point in China. The Statue of Liberty's longitude without its minus lands 10,409.3 km (6,468 mi) away in Kazakhstan, a figure we computed with this site's own measurement code for the article can latitude and longitude be negative, which is the full tour of sign disasters and how to catch them.

The habit that prevents all of it: after converting, say the quadrant aloud. North and west for the Grand Canyon, which means positive latitude, negative longitude. If the signs in your answer disagree with the quadrant you just said, the conversion is not finished.

Worked Example 2: A London Pair, Both Signs Different

Convert 51° 30' 26" N, 0° 07' 39" W, a Westminster pair in the form an old guidebook prints it.

Latitude. 30 / 60 = 0.5. 26 / 3600 = 0.007222. Sum: 51.507222. N, positive: 51.507222.

Longitude. 7 / 60 = 0.116667. 39 / 3600 = 0.010833. Sum: 0.1275. W, negative: -0.127500.

Notice the longitude: the degrees are 0, because London sits almost on the prime meridian, and beginners often panic at a zero degree value or drop the small result entirely. Zero degrees is a perfectly good number; the minutes and seconds carry the whole value here, and the answer's small size is exactly what near the meridian should look like. Compare the site's Big Ben pair, 51.500729, -0.124625, in latitude and longitude: same neighborhood, slightly different door, which is a good reminder that a landmark has many correct pairs, one per entrance.

Worked Example 3: DDM to Decimal, Central Park

Boat GPS units and many handhelds speak degrees and decimal minutes. Convert Central Park's Belvedere Castle: 40° 46.764' N, 73° 58.146' W.

Latitude. 46.764 / 60 = 0.7794. Sum: 40.7794. N: 40.779400.

Longitude. 58.146 / 60 = 0.9691. Sum: 73.9691. W: -73.969100.

One division instead of two; DDM is the easier conversion, and its only trap is being mistaken for DMS. If a number after the degree mark is larger than 60 in its whole part or carries a decimal fraction, you are looking at decimal minutes, not minutes and seconds: 46.764' cannot be 46 minutes and 764 of anything. The formats are compared side by side in latitude and longitude format.

Pencils and rulers lie beside a sheet of paper on a desk
Pencils and rulers lie beside a sheet of paper on a desk

The Spreadsheet Case: A Column of DMS Values

One pair is a job for the converter. Five hundred pairs, exported from a survey, a logbook, or a citizen science dataset, are a job for a formula. Lay the data out with one component per column: A for degrees, B for minutes, C for seconds, D for the hemisphere letter. Then the decimal value is:

*=(A2 + B2/60 + C2/3600) IF(OR(D2="S", D2="W"), -1, 1)**

Fill it down the column and the whole dataset converts at once, signs handled by the letter column. For DDM data, drop the seconds term and divide the decimal minutes by 60: *=(A2 + B2/60) IF(OR(D2="S", D2="W"), -1, 1)**. Two warnings from bitter experience. First, if the source data arrives as one text string per cell, split it into component columns first with the spreadsheet's text to columns tool; formulas that parse strings are where errors go to hide. Second, spot-check three rows against the converter on this page, including one S or W row, before trusting the column. A formula error copied five hundred times is five hundred wrong points that all look plausible.

The Reverse Direction, in Brief

Decimal to DMS runs the film backwards: keep the whole degrees, multiply the fraction by 60 for minutes, keep the whole minutes, multiply the new fraction by 60 for seconds, and turn the sign back into a letter. The practice article, latitude and longitude practice, drills this direction with a full answer key, and the converter above performs it instantly when the arithmetic is not the point.

The Error Table

ErrorSymptomThe fix
Sign never appliedPoint lands on the wrong continent or in an oceanDo the sign as its own step and say the quadrant aloud
Seconds divided by 60 instead of 3600Result is close but off by up to a kilometerSeconds are sixtieths of a minute: two divisions, 60 then 60
DDM read as DMSMinutes come out over 60, or the point shifts by hundreds of metersA decimal fraction after the minutes means decimal minutes; one division only
Minutes or seconds of 60 or more acceptedThe source itself is malformed or already decimalMinutes and seconds live between 0 and 60; a 60 means the data needs a second look
Degrees dropped when zeroLondon longitudes collapse to nothingZero degrees is a real value; the minutes and seconds carry the number
Rounding mid-calculationSmall drift that grows across a datasetKeep full precision until the final answer, then round once

Why Three Formats Exist at All

A reasonable question, halfway through the arithmetic: why does the world keep three costumes for one pair of numbers? History answers it. Degrees, minutes, and seconds descend from Babylonian base-60 arithmetic and from the era of paper charts and sextants, when a navigator worked in whole numbers he could look up in printed tables. Degrees and decimal minutes belong to the radio and GPS era at sea, where positions are spoken aloud and a single decimal is easier to transmit without error than two whole numbers. Decimal degrees belong to computers, which prefer one number per value and do their own dividing. None of the three is wrong, and none is dying soon, because each is embedded in an industry's paper, instruments, or code. Conversion is therefore not a school exercise; it is the permanent customs desk between three living systems, and the formula on this page is the whole of the law there. If the costumes themselves interest you, latitude and longitude format lays all of them side by side on one point.

Related Guides

If this page answered part of the question, these coordinates guides cover the rest of the same ground:

Frequently Asked Questions

What is the formula to convert DMS to decimal degrees?

Decimal = degrees + minutes/60 + seconds/3600, with a negative sign if the hemisphere is south or west. The same shape converts DDM by dropping the seconds term: decimal = degrees + decimal minutes/60.

How do I convert degrees and decimal minutes to decimal?

Divide the decimal minutes by 60 and add to the degrees, then apply the sign. Example: 40° 46.764' N becomes 40 + 46.764/60 = 40.779400.

Which hemispheres are negative?

South latitude and west longitude are negative; north and east are positive. In a conversion, the letters S and W are instructions to attach a minus sign, and N and E are instructions to leave the number positive.

How many decimal places should I keep?

Six is the common working standard and names a spot to about 11 cm, far finer than the accuracy of the devices that produced most pairs. Keep at least five for meter-level work, and never round during the calculation itself.

Can I convert coordinates in Excel or Google Sheets?

Yes, and for long lists it is the right tool. Put degrees, minutes, seconds, and hemisphere in separate columns and use =(A2 + B2/60 + C2/3600) * IF(OR(D2="S", D2="W"), -1, 1), then verify a few rows against a known converter before trusting the fill.

Why does my converted pair land in the ocean?

Almost always the sign step: a west longitude or south latitude that stayed positive mirrors the point across the equator or the prime meridian, and mirrors of coastal cities are usually wet. Recheck the letters against your signs before suspecting the arithmetic.

Photo credits: Alex Moliski (Pexels); Katerina Holmes (Pexels). Photos are served from this site; follow the credit to the library page for the original.