Compound Angle Calculator | Sum & Difference Identities


Compound Angle Calculator

Instantly calculate trigonometric functions of a sum or difference of two angles using the compound angle identities. Enter your angles below to get started.


Enter the first angle, e.g., 45.
Please enter a valid number.


Enter the second angle, e.g., 30.
Please enter a valid number.


Choose the main result you want to see highlighted.


What is a Compound Angle Calculator?

A compound angle calculator is a digital tool designed to compute the trigonometric values (sine, cosine, tangent) of a sum or difference of two angles. These calculations are based on the compound angle formulas, also known as the sum and difference identities in trigonometry. Instead of manually applying these formulas, a compound angle calculator allows students, engineers, and scientists to quickly find exact or approximate values for expressions like sin(A + B) or cos(A - B). This is incredibly useful for angles that are not standard (like 30°, 45°, 60°) but can be expressed as a sum or difference of these standard angles, for instance, calculating sin(75°) by setting A=45° and B=30°.

This tool is essential for anyone working in fields that rely on trigonometry, such as physics, engineering, computer graphics, and surveying. It simplifies complex calculations, reduces the chance of manual error, and provides instant results for verification and application. Whether you’re solving a textbook problem or designing a real-world system, our compound angle calculator is a reliable and efficient resource.

Compound Angle Formula and Mathematical Explanation

The core of any compound angle calculator lies in a set of fundamental trigonometric identities. These formulas express the trigonometric function of a compound angle (like A+B or A-B) in terms of the trigonometric functions of the individual angles A and B.

The Core Formulas

  • Sine Sum: sin(A + B) = sin(A)cos(B) + cos(A)sin(B)
  • Sine Difference: sin(A - B) = sin(A)cos(B) - cos(A)sin(B)
  • Cosine Sum: cos(A + B) = cos(A)cos(B) - sin(A)sin(B)
  • Cosine Difference: cos(A - B) = cos(A)cos(B) + sin(A)sin(B)
  • Tangent Sum: tan(A + B) = (tan(A) + tan(B)) / (1 - tan(A)tan(B))
  • Tangent Difference: tan(A - B) = (tan(A) - tan(B)) / (1 + tan(A)tan(B))

Our calculator takes your input angles, A and B (in degrees), converts them to radians for the underlying JavaScript math functions, calculates the individual sine and cosine values, and then substitutes them into these identities to find the final result. For a deeper dive, consider exploring an angle addition formula guide.

Variables Table

Variable Meaning Unit Typical Range
A The first angle Degrees (°) -360° to 360°
B The second angle Degrees (°) -360° to 360°
sin(θ) Sine of an angle Dimensionless -1 to 1
cos(θ) Cosine of an angle Dimensionless -1 to 1
tan(θ) Tangent of an angle Dimensionless -∞ to ∞

Practical Examples (Real-World Use Cases)

Example 1: Wave Interference in Physics

Imagine two sound waves interfering. Wave 1 can be described by sin(ωt + 45°) and Wave 2 by cos(ωt - 30°). To find the resultant wave at a certain point in time, a physicist might need to analyze their sum. Using a compound angle calculator helps expand these terms to understand their combined amplitude and phase.

  • Input A: 45°
  • Input B: 30°
  • Output (cos(A-B)): Using the calculator for cos(45° - 30°) = cos(15°), we get approximately 0.9659. This value might represent a component of the resulting wave’s amplitude.

Example 2: Robotics and Kinematics

An engineer designing a robotic arm needs to calculate the final position of the gripper, which involves multiple rotating joints. The rotation of one segment relative to another can be modeled using rotation matrices, which are heavily based on sine and cosine. If one joint rotates by angle A and the next by angle B, the total rotation is A+B. A compound angle calculator is essential for determining the trigonometric values of this total angle, which directly feeds into the robot’s coordinate calculations. For complex 3D rotations, this concept extends into tools like a double angle calculator.

  • Input A: 60° (first joint rotation)
  • Input B: 15° (second joint rotation)
  • Output (sin(A+B)): The total rotation is 75°. Calculating sin(75°) using the sum formula gives 0.9659. This value is critical for determining the final (x, y) position of the robotic arm.

How to Use This Compound Angle Calculator

  1. Enter Angle A: Input the value for your first angle in the “Angle A” field.
  2. Enter Angle B: Input the value for your second angle in the “Angle B” field.
  3. Select Operation: Choose the primary calculation you wish to highlight from the dropdown menu (e.g., sin(A+B)).
  4. Read the Results: The calculator automatically updates. The main result is shown in the large green box. You can also view intermediate values like sin(A) and cos(B), the formula used, a chart comparing individual values, and a comprehensive table with all six compound angle results.
  5. Reset or Copy: Use the “Reset” button to return to the default values. Use the “Copy Results” button to copy a summary to your clipboard.

Understanding the results from the compound angle calculator allows you to make informed decisions, whether it’s for checking homework, performing an engineering calculation, or exploring trigonometric relationships. For further learning on trigonometric principles, check our guide on the unit circle calculator.

Key Factors That Affect Compound Angle Results

  • Value of Angle A: The starting point for the calculation. Its magnitude and sign determine the values of sin(A) and cos(A).
  • Value of Angle B: The second angle that modifies the first. Its magnitude and sign determine the values of sin(B) and cos(B).
  • The Operation (Sum or Difference): Whether you are adding or subtracting the angles fundamentally changes the formula used and thus the outcome. `cos(A+B)` is very different from `cos(A-B)`.
  • The Trigonometric Function (sin, cos, tan): Each function has a unique formula, leading to different results. For instance, sum formulas for sine involve addition, while for cosine they involve subtraction.
  • Quadrant of the Angles: The quadrant (I, II, III, or IV) where angles A, B, and their sum/difference lie determines the sign (positive or negative) of the sine, cosine, and tangent values. Our compound angle calculator handles this automatically.
  • Unit of Measurement: This calculator assumes degrees. If your angles are in radians, you must convert them to degrees first (Radians * 180/π).

Frequently Asked Questions (FAQ)

1. What is a compound angle?

A compound angle is an angle that is formed by the algebraic sum or difference of two or more angles. For example, A+B and A-B are compound angles.

2. Why can’t I just add the trig values? For example, is sin(A+B) equal to sin(A) + sin(B)?

No, this is a common misconception. Trigonometric functions are not linear. The compound angle calculator uses the correct identity: `sin(A+B) = sin(A)cos(B) + cos(A)sin(B)`, which is not equal to `sin(A) + sin(B)`.

3. How does the compound angle calculator handle undefined values, like tan(90°)?

If the calculation results in tan(90°), tan(270°), etc., where the cosine component is zero, the calculator will display “Undefined” as the result for that specific calculation, preventing errors.

4. Can I use this calculator for finding exact values?

Yes. For example, to find the exact value of sin(75°), you can use A=45° and B=30°. The calculator performs the calculation `sin(45)cos(30) + cos(45)sin(30)` to give the decimal equivalent of (√6 + √2) / 4.

5. What is the difference between a compound angle and a double angle?

A double angle is a special case of a compound angle where A=B. For example, the double angle formula for sine, `sin(2A) = 2sin(A)cos(A)`, is derived from the compound angle formula by setting B=A. For these specific cases, a double angle calculator might be more direct.

6. How are these formulas applied in computer graphics?

In 3D graphics, rotating an object often requires applying multiple rotations. These are combined using matrix multiplication, whose elements are derived from sine and cosine of the rotation angles. Compound angle formulas are the foundation of these calculations. For more advanced rotations, see our info on sum and difference identities.

7. Does this calculator work with negative angles?

Yes, the compound angle calculator correctly handles negative angles. For example, entering -30° for B is perfectly valid and will use the identities sin(-x) = -sin(x) and cos(-x) = cos(x) in its calculations.

8. Are there similar formulas for cotangent, secant, and cosecant?

Yes, formulas exist for the reciprocal functions as well. However, they are most often calculated by first finding the value for sin, cos, or tan and then taking the reciprocal (e.g., sec(A+B) = 1/cos(A+B)).

Related Tools and Internal Resources

Explore other related tools and resources to deepen your understanding of trigonometry and its applications.

© 2026 Web Calculators Inc. All rights reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *