Law of Tangents Calculator
Calculate law tangents instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Law of Tangents Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: (a - b) / (a + b) = tan((A - B) / 2) / tan((A + B) / 2)
Worked example โ Angle A = 76.1021 degrees, Angle B = 43.8979 degrees, Side c = 6.2450
Formula
(a - b) / (a + b) = tan((A - B) / 2) / tan((A + B) / 2)
Where a and b are two known sides of the triangle, A and B are the angles opposite those sides, and (A + B) / 2 is found from the angle sum property since A + B = 180 - C. This formula lets you find the unknown angles directly from two sides and the included angle.
Worked Examples
Example 1: SAS Triangle with Sides 7 and 5, Included Angle 60 degrees
Problem:Given a triangle with sides a = 7, b = 5, and included angle C = 60 degrees, find angles A and B using the Law of Tangents.
Solution:Half-sum = (A + B) / 2 = (180 - 60) / 2 = 60 degrees tan((A - B)/2) = ((7 - 5)/(7 + 5)) * tan(60) = (2/12) * 1.7321 = 0.2887 (A - B)/2 = arctan(0.2887) = 16.1021 degrees A = 60 + 16.1021 = 76.1021 degrees B = 60 - 16.1021 = 43.8979 degrees
Result:Angle A = 76.1021 degrees, Angle B = 43.8979 degrees, Side c = 6.2450
Example 2: Isosceles Triangle with Equal Sides
Problem:Given a triangle with sides a = 10, b = 10, and included angle C = 40 degrees, verify that the Law of Tangents gives equal angles.
Solution:Half-sum = (180 - 40) / 2 = 70 degrees tan((A - B)/2) = ((10 - 10)/(10 + 10)) * tan(70) = 0 * 2.7475 = 0 (A - B)/2 = arctan(0) = 0 degrees A = 70 + 0 = 70 degrees B = 70 - 0 = 70 degrees
Result:Angle A = 70.0000 degrees, Angle B = 70.0000 degrees (isosceles confirmed)
Frequently Asked Questions
What is the Law of Tangents and how does it differ from the Law of Sines?
The Law of Tangents is a trigonometric identity that relates the sides and angles of a triangle using tangent functions. It states that (a - b) / (a + b) equals tan((A - B) / 2) divided by tan((A + B) / 2). Unlike the Law of Sines, which requires knowing at least one side-angle pair, the Law of Tangents is particularly useful when you know two sides and the included angle (SAS case). It provides a direct way to find the difference between the two unknown angles without needing to use the Law of Cosines first. Historically, it was preferred over the Law of Cosines because it avoids the need for computing square roots and is better suited for logarithmic computation.
When should I use the Law of Tangents instead of the Law of Cosines?
The Law of Tangents is most useful in the SAS (Side-Angle-Side) case, where you know two sides and the included angle. While the Law of Cosines can also solve this case, the Law of Tangents directly gives you the two unknown angles without needing to find the third side first. This can be computationally more efficient and introduces fewer rounding errors in hand calculations. In the era before electronic calculators, the Law of Tangents was strongly preferred because it could be solved entirely with logarithmic tables, whereas the Law of Cosines required extracting a square root. Today, with digital computation, both methods yield equally accurate results, but the Law of Tangents remains valuable for theoretical understanding.
What is the formula derivation behind the Law of Tangents?
The Law of Tangents can be derived from the Law of Sines. Starting with a/sin(A) = b/sin(B), we get a/b = sin(A)/sin(B). Applying the sum-to-product identities, (a - b)/(a + b) = (sin(A) - sin(B))/(sin(A) + sin(B)). Using the identities sin(A) - sin(B) = 2 cos((A+B)/2) sin((A-B)/2) and sin(A) + sin(B) = 2 sin((A+B)/2) cos((A-B)/2), this simplifies to tan((A-B)/2) / tan((A+B)/2). This elegant derivation connects three fundamental trigonometric laws and demonstrates the deep interconnection between sine, cosine, and tangent relationships in triangles.
How does Law of Tangents Calculator handle the case when both sides are equal?
When both sides a and b are equal, the Law of Tangents formula produces (a - b) / (a + b) = 0, which means tan((A - B) / 2) = 0, and therefore A = B. This is mathematically correct because an isosceles triangle has two equal base angles opposite the two equal sides. The calculator handles this gracefully by computing the result directly. In this special case, each unknown angle equals (180 - C) / 2 degrees. The formula remains valid and stable even as the two sides approach equality, unlike some numerical methods that might encounter division-by-zero issues. This demonstrates the mathematical consistency of the Law of Tangents across all valid triangle configurations.
What are the limitations and edge cases of the Law of Tangents?
The Law of Tangents has several important limitations to consider. First, it requires that the included angle C is strictly between 0 and 180 degrees, exclusive. Second, the sum (a + b) must be positive, which is always true for valid triangles. Third, when a equals b, the formula simplifies trivially as discussed above. Fourth, the tangent function has asymptotes at 90 degrees, which can cause numerical issues when (A + B) / 2 is near 90 degrees (meaning C is near 0). Fifth, very obtuse included angles can lead to one of the unknown angles being very small, potentially causing precision loss. For most practical triangle configurations, the formula works reliably and produces accurate results.
How does the Law of Tangents relate to navigation and surveying?
Historically, the Law of Tangents was one of the most important tools in navigation and land surveying before modern GPS technology. Surveyors frequently encountered the SAS configuration when measuring distances and bearings between landmarks. They could measure two distances from a known point and the angle between them, then use the Law of Tangents to calculate the remaining angles and determine the complete triangle. Because the computation relied solely on multiplication, division, and tangent lookups, it could be performed efficiently using logarithmic tables and mechanical calculators. Even today, the principles behind the Law of Tangents inform geodetic calculations and triangulation methods used in geographic information systems.
Can the Law of Tangents be extended to non-Euclidean geometry?
Yes, the Law of Tangents has analogues in both spherical and hyperbolic geometry, though the formulas are modified to account for curvature. In spherical trigonometry, Napier analogies serve a similar purpose, relating sides and angles of spherical triangles using tangent functions. In hyperbolic geometry, the hyperbolic law of tangents uses hyperbolic tangent functions for the sides while keeping circular tangent functions for the angles. These extended forms are essential in astronomy, where celestial triangles are spherical, and in the theory of relativity, where hyperbolic geometry describes certain spacetime relationships. Understanding the Euclidean version provides a solid foundation for grasping these more advanced generalizations.
How accurate are the results from this Law of Tangents calculator?
Law of Tangents Calculator uses JavaScript double-precision floating-point arithmetic, which provides approximately 15 to 17 significant decimal digits of precision. For most practical applications in engineering, surveying, and education, this level of accuracy is more than sufficient. The Law of Tangents formula itself is numerically well-conditioned for most triangle configurations, meaning small input errors produce proportionally small output errors. However, extreme cases such as very flat triangles (where one angle approaches 0 or 180 degrees) can amplify rounding errors. The results are displayed to four decimal places, which provides millimeter-level accuracy for most real-world measurements. For critical applications, always verify results with independent calculations.
What other triangle properties can be derived once the Law of Tangents gives all angles?
Once all three angles and sides are known, a wealth of triangle properties become calculable. The area can be found using the formula (1/2)ab sin(C). The perimeter is simply the sum of all three sides. The semi-perimeter enables calculation of the inradius (area divided by semi-perimeter), which is the radius of the inscribed circle. The circumradius (any side divided by twice the sine of its opposite angle) gives the radius of the circumscribed circle. Additional properties include the medians, altitudes, angle bisectors, and the coordinates of notable triangle centers such as the centroid, orthocenter, incenter, and circumcenter. Law of Tangents Calculator computes several of these derived quantities automatically for convenience.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎLaw of Cosines Calculator
Calculate law of cosines with inputs, formulas, and instant results.
๐งฎLaw of Sines Calculator
Calculate law of sines with inputs, formulas, and instant results.
๐งฎAnnulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
๐งฎArea Calculator
Calculate area with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
๐งฎArea of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
๐งฎCenter of Mass Calculator
Calculate center of mass with inputs, formulas, and instant results.
๐งฎCentroid Calculator
Calculate centroid with inputs, formulas, and instant results.