ThisCalculator

Everyday

Degrees Minutes Seconds Calculator Subtract

Updated · Standard formula, shown below

Difference (DMS) 24.7458 ° ' "
Decimal degrees
24.7458 °
Result
Angle 1 degrees
45 °
You entered
Angle 1 minutes
30 '
You entered

This calculator subtracts one angle given in degrees, minutes, and seconds (DMS) from another, returning the result in the same DMS format. You enter two angles—each with separate fields for degrees, minutes, and seconds—and the tool computes the difference, handling borrows and negative results automatically. The answer is shown as a DMS value, and you can also see the decimal degree equivalent for easy verification.

Formula

The core method is to convert each DMS angle to total seconds, subtract, then convert back. For an angle A with degrees D, minutes M, and seconds S:

  • Total seconds = D × 3600 + M × 60 + S
  • Difference in seconds = Total seconds of angle 1 − Total seconds of angle 2
  • Convert back: degrees = floor(diff / 3600), minutes = floor((diff % 3600) / 60), seconds = diff % 60

In the calculator, the expression (d1*3600 + m1*60 + s1 - (d2*3600 + m2*60 + s2)) / 3600 gives the difference in decimal degrees, which is then displayed as DMS with 4 decimal places for seconds. The second output shows the same result in pure decimal degrees.

Worked Example

Using the defaults: Angle 1 = 45° 30′ 15″, Angle 2 = 20° 45′ 30″.

  1. Convert Angle 1 to seconds: 45×3600 + 30×60 + 15 = 162000 + 1800 + 15 = 163815″
  2. Convert Angle 2 to seconds: 20×3600 + 45×60 + 30 = 72000 + 2700 + 30 = 74730″
  3. Difference = 163815 − 74730 = 89085″
  4. Convert back: 89085 ÷ 3600 = 24.745833…, so degrees = 24, remainder = 89085 − 24×3600 = 89085 − 86400 = 2685″
  5. Minutes = floor(2685 / 60) = 44, remainder = 2685 − 44×60 = 2685 − 2640 = 45″
  6. Result: 24° 44′ 45″ (or 24.7458° decimal)

The calculator’s first output shows 24° 44′ 45″ (the seconds displayed as 45.0000), matching the manual calculation.

Why Subtract DMS Angles?

Degrees, minutes, and seconds is the traditional format for geographic coordinates (latitude/longitude) and for astronomical or surveying angles. Subtracting two DMS values is common when:

  • Finding the angular distance between two celestial objects.
  • Calculating the difference in latitude or longitude between two points.
  • Adjusting a measured angle by a correction value in surveying.
  • Working with bearing or azimuth changes in navigation.

While many modern tools use decimal degrees, DMS is still preferred in many printed maps, nautical charts, and professional fields because it offers a compact, sexagesimal representation that is easy to read and record.

How to Use the Calculator

Enter each angle in three separate fields: degrees (whole number), minutes (0–59), and seconds (0–59.999…). The tool accepts decimal values for seconds, which is useful for high-precision work. After entering both angles, click Calculate. The first output is the difference in DMS format, with seconds shown to four decimal places. The second output gives the same difference in decimal degrees, which is helpful for further calculations or for checking with other software.

If the second angle is larger than the first, the result will be negative. The calculator shows a negative sign in front of the degrees, and the minutes and seconds remain positive (e.g., −5° 15′ 30″). This is the standard convention for a signed difference.

Common Mistakes and Pitfalls

  • Forgetting to borrow: When subtracting minutes or seconds, you must borrow 60 from the higher unit. The calculator does this automatically, but if you do it by hand, remember that 1° = 60′ and 1′ = 60″.
  • Using decimal minutes or seconds incorrectly: Minutes and seconds are base‑60, not base‑10. For example, 45.5 minutes is 45′ 30″, not 45′ 5″.
  • Mixing DMS and decimal degrees: If you enter 45.5 in the degrees field, the calculator treats it as 45° 30′ 00″, not 45.5°. Always split the value into degrees, minutes, and seconds.
  • Ignoring the sign of the result: The difference is signed; if you need an absolute angular separation, take the absolute value.

Limitations of the Formula

The DMS subtraction formula assumes standard sexagesimal arithmetic. It works for any angles, but be aware of these limits:

  • The result is normalized to minutes and seconds in the range 0–59.999…, but the degrees can be any real number, including negative.
  • For very large angles (e.g., thousands of degrees), the precision of the seconds field may be limited by the calculator’s floating-point arithmetic, but this is rarely an issue in practice.
  • The calculator does not handle angles expressed in radians; you must convert those to degrees first.

For geographic coordinates, note that latitude and longitude are often constrained to specific ranges (e.g., latitude −90° to +90°), but the subtraction formula itself does not enforce those ranges—it simply computes the arithmetic difference.

Frequently Asked Questions

How do you subtract degrees minutes and seconds manually?

Convert both angles to total seconds, subtract, then convert back. For example, 45° 30′ 15″ − 20° 45′ 30″ = (45×3600 + 30×60 + 15) − (20×3600 + 45×60 + 30) = 89085″ = 24° 44′ 45″.

What if the seconds or minutes of the second angle are larger?

You borrow from the higher unit. For instance, to subtract 45′ from 30′, borrow 1° (60′) from the degrees, making it 90′ − 45′ = 45′. The calculator does this automatically.

Can I subtract decimal degrees using this calculator?

Yes, but you must enter the decimal part in the minutes and seconds fields. For example, 45.75° should be entered as 45° 45′ 00″ (since 0.75° × 60 = 45′). The calculator also gives a decimal degree output for convenience.

How do I subtract DMS values in Excel?

Convert each DMS to decimal degrees using a formula like =D + M/60 + S/3600, subtract the two, then convert back using =INT(result) for degrees, =INT((result - degrees)*60) for minutes, and =(result - degrees - minutes/60)*3600 for seconds.

Why is the result sometimes shown with a negative sign?

Because subtraction is not commutative; if the second angle is larger than the first, the difference is negative. The calculator keeps the sign on the degrees part, which is the standard way to represent a signed angle difference.

Does the calculator work for longitude differences?

Yes, it works for any angular values, including longitude. However, for longitude you might also want to consider the shortest east‑west difference (modulo 360°), which is not handled here—this calculator gives the simple arithmetic difference.

Related

Formula used
in d1 | Angle 1 degrees | ° | 45 | 0
in m1 | Angle 1 minutes | ' | 30 | 0
in s1 | Angle 1 seconds | " | 15 | 0
in d2 | Angle 2 degrees | ° | 20 | 0
in m2 | Angle 2 minutes | ' | 45 | 0
in s2 | Angle 2 seconds | " | 30 | 0
out diff_dms | Difference (DMS) | ° ' " | (d1*3600 + m1*60 + s1 - (d2*3600 + m2*60 + s2)) / 3600 | 4
out diff_dec | Decimal degrees | ° | d1 + m1/60 + s1/3600 - (d2 + m2/60 + s2/3600) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.