Subtract Angles Degrees Minutes Seconds
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator subtracts two angles given in degrees, minutes, and seconds (DMS) and returns the result in the same format. You enter the first angle and the second angle, and the calculator gives you the difference, handling borrows and negative results automatically. It is a practical tool for surveying, navigation, astronomy, and any geometry work where angles are expressed in the traditional DMS notation.
Formula
The subtraction is performed by converting both angles to a single unit (seconds of arc), subtracting, and then converting back to degrees, minutes, and seconds.
For an angle expressed as D° M’ S”:
- Total seconds = D × 3600 + M × 60 + S
- Difference (seconds) = Total seconds of Angle A − Total seconds of Angle B
- Then convert back: Degrees = floor(abs(Difference)/3600), Minutes = floor(mod(abs(Difference),3600)/60), Seconds = mod(abs(Difference),60). The sign of the difference is applied to the whole DMS result.
Variables: D = degrees, M = minutes (0–59), S = seconds (0–59.999…). The result is expressed in the same units.
Worked Example
Using the default values: Angle A = 45° 30′ 15″, Angle B = 20° 45′ 30″.
- Convert A to seconds: 45×3600 = 162000, 30×60 = 1800, plus 15 → 181815 seconds.
- Convert B to seconds: 20×3600 = 72000, 45×60 = 2700, plus 30 → 74730 seconds.
- Subtract: 181815 − 74730 = 107085 seconds.
- Convert back: 107085 / 3600 = 29.745833… → 29 whole degrees.
- Remainder: 107085 − 29×3600 = 107085 − 104400 = 2685 seconds. 2685 / 60 = 44.75 → 44 whole minutes.
- Remainder: 2685 − 44×60 = 2685 − 2640 = 45 seconds.
- Result: 29° 44′ 45″.
The calculator shows the difference in seconds (107085), in decimal degrees (29.7458°), and in DMS (29° 44′ 45″).
Why Subtract Angles in DMS?
Degrees, minutes, and seconds is the traditional way to express angles in many fields. Even though decimal degrees are common in digital systems, DMS is still used in:
- Land surveying – property boundaries and legal descriptions often use DMS.
- Navigation – nautical charts and celestial navigation use degrees and minutes (and sometimes seconds).
- Astronomy – right ascension and declination are measured in hours/minutes/seconds or degrees/arcminutes/arcseconds.
- Geographic coordinates – latitude and longitude are frequently given as DMS.
- Construction and machining – some tools and blueprints specify angles in DMS.
When you need to find the difference between two such angles, you must subtract them correctly, which often involves borrowing from the minutes or degrees column. This calculator automates that process.
How to Use the Calculator
Enter the degrees, minutes, and seconds for Angle A (the angle you are subtracting from) and for Angle B (the angle being subtracted). The calculator then:
- Converts both angles to total seconds.
- Subtracts B from A.
- Converts the result back to DMS, showing the sign if negative.
You can also see the result in decimal degrees and in total seconds, which is useful for further calculations. The default values are just examples – replace them with your own numbers.
Common Mistakes and Pitfalls
When subtracting DMS angles by hand, the most frequent errors are:
- Forgetting to borrow: if the seconds of A are less than the seconds of B, you must borrow 1 minute (60 seconds) from the minutes column. Similarly, borrow 1 degree (60 minutes) if needed.
- Mixing units: always work in a single unit (seconds) to avoid mistakes.
- Incorrect rounding: seconds can be decimals, but minutes and seconds should be between 0 and 59.999… after conversion.
- Sign handling: if the result is negative, the entire DMS value is negative, not just the degrees.
For example, subtract 20° 45′ 30″ from 45° 30′ 15″ manually: you need to borrow because 15″ < 30". Borrow 1' from 30' → 45° 29' 75". Then 75" − 30" = 45", 29' − 45' is negative, so borrow 1° → 44° 89' − 45' = 44'? Actually, let's not go into the full manual process – the calculator handles it correctly.
Limitations and Alternatives
This calculator assumes that both angles are given in the same format and that the subtraction is straightforward. It does not handle angles expressed in radians or gradians – you would need to convert those first. Also, if you are subtracting angles that wrap around a full circle (e.g., 5° − 350°), the result will be −345°, not 15°. For such cases, you may want to add 360° to the result if you need a positive angle between 0° and 360°.
Alternative methods include using a scientific calculator with DMS functions (often labeled as ° ‘ ” or DMS), or converting to decimal degrees first, subtracting, and converting back. Many spreadsheet programs also have functions for this, but they may require custom formulas.
Frequently Asked Questions
How do I subtract angles with borrowing manually?
Start with the seconds. If the seconds of the first angle are smaller than the second, borrow 1 minute (60 seconds) from the minutes column. Then subtract seconds. Do the same for minutes: if needed, borrow 1 degree (60 minutes) from the degrees column. Finally, subtract degrees. The result is the difference in DMS.
Can I subtract angles in decimal degrees instead?
Yes. Convert each angle to decimal degrees (degrees + minutes/60 + seconds/3600), subtract, and then convert back to DMS if needed. This is often easier and less error-prone, but you may lose the traditional format.
What if the result is negative?
The calculator shows the negative sign in front of the whole DMS value, e.g., −5° 15′ 20″. This means the second angle is larger than the first. If you need a positive angle, you can add 360° to the result (or 180° in some contexts).
Why are there 60 minutes in a degree and 60 seconds in a minute?
This comes from the ancient Babylonians, who used a base-60 (sexagesimal) number system. The division of a circle into 360 degrees also traces back to them, and each degree was subdivided into 60 parts, and each of those into 60 more. This system persists in many fields today.
Can I use this calculator for latitude and longitude?
Yes, latitude and longitude are angles expressed in DMS. Subtracting them gives the difference in position, which is useful for distance calculations (though you also need the Earth’s radius and spherical geometry). The calculator works the same way.
What about seconds with decimals?
You can enter seconds as a decimal, like 30.5. The calculator handles that correctly. The result may have decimal seconds, which is perfectly valid.
Related
Formula used
in a_deg | Angle A degrees | ° | 45 | 0 in a_min | Angle A minutes | ' | 30 | 0 in a_sec | Angle A seconds | " | 15 | 0 in b_deg | Angle B degrees | ° | 20 | 0 in b_min | Angle B minutes | ' | 45 | 0 in b_sec | Angle B seconds | " | 30 | 0 out diff_sec | Difference in seconds | " | (a_deg*3600 + a_min*60 + a_sec) - (b_deg*3600 + b_min*60 + b_sec) | 0 out diff_deg | Difference in decimal degrees | ° | diff_sec / 3600 | 4 out diff_dms | Difference in DMS | ° ' " | (floor(abs(diff_sec)/3600)*sign(diff_sec)) + "° " + (floor(mod(abs(diff_sec),3600)/60)*sign(diff_sec)) + "' " + (mod(abs(diff_sec),60)*sign(diff_sec)) + "\"" | 0
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.