Trigonometry Calculator
All six trig functions of an angle, or the angle from a ratio, with exact values, quadrant and steps.
To convert DMS to decimal degrees, divide the minutes by 60 and the seconds by 3,600 and add both to the degrees: .
73° 59′ 7.54″ W in decimal degrees
73° 59′ 7.54″ W equals approximately −73.98542778 decimal degrees (negative because it is west).
Decimal degrees are rounded to 8 decimal places, about 1 mm on the Earth’s surface.
One second of latitude is about 30.9 m on the ground; one second of longitude is about 30.9 m × cos(latitude).
Convert minutes and seconds to degrees
There are 60 minutes in a degree and 3,600 seconds in a degree.
Apply the sign
South latitudes and west longitudes are negative in decimal degrees.
South and west then become negative. The converter also turns decimal degrees back into DMS for latitude and longitude, with correct rounding of seconds, DDM, radians and gradians.
DMS to decimal degrees formula
Plain-text formula: D = d + m/60 + s/3600
Add the minutes as sixtieths and the seconds as 3,600ths of a degree, then apply the sign: S latitudes and W longitudes are negative.
Decimal degrees to DMS formula
Plain-text formula: d = ⌊D⌋, m = ⌊60(D − d)⌋, s = 3600(D − d) − 60m
Work with |D|. Take the whole degrees, multiply the remainder by 60 for minutes, and multiply what is left by 60 again for seconds. If the rounded seconds reach 60, carry one minute.
Radians and gradians
Plain-text formula: 1° = π/180 rad = 10/9 grad
A full turn is 360°, 2π rad or 400 grad.
DMS splits a degree the way an hour is split into minutes and seconds: 1° = 60′ and 1′ = 60″, so one second is 1/3,600 of a degree. That is why converting DMS to decimal degrees divides the seconds by 3,600, not by 100.
Decimal degrees carry the hemisphere in the sign. Positive latitudes are north of the equator and negative ones south; positive longitudes are east of the prime meridian and negative ones west. Mapping software, GPS exports and spreadsheets expect this signed form, so 73° 59′ 7.54″ W must be entered as −73.98542778, not 73.98542778.
Rounding happens only at the last step and can push the seconds to 60. Then 60″ becomes 1′ and the minutes go up by one (and 60′ becomes 1°), so you never see 59′ 60″.
Reverse the DMS to decimal degrees formula: peel off the whole degrees, then turn what is left into minutes and seconds by multiplying by 60 twice. For the latitude 40.748817°:
1. Degrees: the whole number is 40, leaving 0.748817°. 2. Minutes: 0.748817 × 60 = 44.92902, so 44′, leaving 0.92902′. 3. Seconds: 0.92902 × 60 = 55.7412″, which rounds to 55.74″. 4. Hemisphere: the value is positive, so it is north: 40° 44′ 55.74″ N. Open this conversion in the calculator.
For a negative value, work with the absolute value and put S or W back at the end: −73.985428° is 73° 59′ 7.54″ W. If the rounded seconds come out as 60, carry a minute: 10.9999999° is 11° 0′ 0.00″, not 10° 59′ 60.00″.
The same position can be written three ways. Decimal degrees (DD) are what maps, GIS software and spreadsheets use; degrees, minutes and seconds (DMS) appear on survey plans, deeds and older charts; degrees and decimal minutes (DDM) are common on GPS receivers and in marine navigation. The table converts a few coordinates both ways, with seconds to two places and minutes to four.
| Decimal degrees | DMS | DDM | Hemisphere |
|---|---|---|---|
| 40.748817 | 40° 44′ 55.74″ N | 40° 44.9290′ N | North latitude |
| −73.985428 | 73° 59′ 7.54″ W | 73° 59.1257′ W | West longitude |
| −33.8568 | 33° 51′ 24.48″ S | 33° 51.4080′ S | South latitude |
| 151.2153 | 151° 12′ 55.08″ E | 151° 12.9180′ E | East longitude |
| −0.1246 | 0° 7′ 28.56″ W | 0° 7.4760′ W | West longitude under 1° |
One degree of latitude is about 111 km on the ground, one minute about 1.85 km (a nautical mile) and one second about 31 m. A degree of longitude is the same length at the equator and shrinks toward the poles by the cosine of the latitude, so at 60° N it is about half as long. Use the table to match the precision of your source: copying a coordinate measured to the nearest second into eight decimal places does not make it more accurate.
| Decimal degrees | Ground distance | DMS equivalent | Typical use |
|---|---|---|---|
| 0.1° | about 11 km | 6′ | Region or large city |
| 0.01° | about 1.1 km | 36″ | Town or district |
| 0.001° | about 111 m | 3.6″ | Neighborhood or large field |
| 0.0001° | about 11 m | 0.36″ | Building or street address |
| 0.00001° | about 1.1 m | 0.036″ | Consumer GPS, tree or doorway |
| 0.000001° | about 11 cm | 0.0036″ | Survey-grade GNSS |
With degrees in A2, minutes in B2 and seconds in C2, the decimal degrees are =A2+B2/60+C2/3600. If the hemisphere letter is in D2, apply the sign with =IF(OR(D2="S",D2="W"),-1,1)*(A2+B2/60+C2/3600). Both formulas work the same in Excel and Google Sheets.
To go from decimal degrees in A2 back to DMS, use =INT(ABS(A2)) for the degrees, =INT(MOD(ABS(A2)*60,60)) for the minutes and =ROUND(MOD(ABS(A2)*3600,60),2) for the seconds, then add N/S or E/W from the sign of A2. A spreadsheet will not carry a rounded 60″ into the minutes for you, so check any row where the seconds show 60.00, or run that value through the calculator above.
If your DMS values sit in one cell as text, such as 40° 44′ 55.74″, split them into three columns first (Data, then Text to Columns in Excel, or Data, then Split text to columns in Google Sheets, using the °, ′ and ″ symbols as delimiters) so each part is a number.
Convert a coordinate in the Southern and Western Hemispheres from DMS to decimal degrees, to 8 decimal places.
Answer: 22° 57′ 7″ S, 43° 12′ 38″ W = −22.95194444, −43.21055556 in decimal degrees (latitude first). Check the latitude in the calculator.
Divide the minutes by 60 and the seconds by 3,600 and add them to the degrees. For 73° 59′ 7.54″ W: 73 + 59/60 + 7.54/3600 ≈ 73.98542778, and west makes it −73.98542778°.
Keep the whole degrees, multiply the decimal part by 60 to get minutes, then multiply the decimal part of the minutes by 60 to get seconds. For 40.748817°: 40°, 0.748817 × 60 = 44.92902 so 44′, and 0.92902 × 60 = 55.7412 so 55.74″, giving 40° 44′ 55.74″.
In decimal degrees, latitude is measured north (+) or south (−) of the equator and longitude east (+) or west (−) of the prime meridian at Greenwich. A minus sign replaces the S or W letter.
They become 0 and one minute is carried, just as 59.999 seconds on a clock rounds to the next minute. For example 10.9999999° rounds to 11° 0′ 0.00″, not 10° 59′ 60.00″.
DMS writes degrees, minutes and seconds (40° 44′ 55.74″). DDM, degrees and decimal minutes (40° 44.9290′), drops the seconds and puts decimals on the minutes; many GPS receivers and charts use it.
Six decimal places (about 11 cm) is more than enough for almost any map, and five (about 1.1 m) matches a phone GPS. Four places is about 11 m. More digits than your source measured add no accuracy.
Set the degrees to 0, enter the minutes and seconds, and choose Negative (or S or W) as the sign. For example 0° 30′ 0″ negative is −0.5°.
They share the base-60 system but are different units. Arcminutes and arcseconds measure angle; minutes and seconds of right ascension in astronomy measure time, where 1 hour corresponds to 15°.
All six trig functions of an angle, or the angle from a ratio, with exact values, quadrant and steps.
Solve any triangle from SSS, SAS, ASA, AAS or SSA, with law of sines and cosines steps and the ambiguous case.
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
Polar ↔ rectangular (Cartesian) conversion with steps, quadrant reasoning, exact values and exponential form.
Convert between units in 40 categories with exact factors, formulas and tables.
Type or tap expressions with exact fractions, memory, variables, constants and complex mode.
Learn more: For when to use degrees, radians or degrees-minutes-seconds, read degrees vs radians.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?