Tangent of Angle Between Two Lines Calculator — Slope & Equation

Calculate the tangent of the angle between two lines using slopes or equations. Detect parallel and perpendicular lines, find acute and obtuse angles, with visual intersection diagram.

Slope of the first line
Slope of the second line
Acute Angle (degrees)
36.869898°
The smaller angle between the two lines
Obtuse Angle (degrees)
143.130102°
The larger angle: 180° − acute angle
Acute Angle (radians)
0.643501 rad
In radians — preferred in calculus and physics
tan(α)
0.750000
|m₁−m₂|/(1+m₁m₂) = 1.5000/2.0000
Line 1 Angle
63.434949° from horizontal
Slope m₁ = 2.000000
Line 2 Angle
26.565051° from horizontal
Slope m₂ = 0.500000
m₁ · m₂
1.000000
Product of slopes — if = −1, lines are perpendicular
Gradians
40.966553 gon
Acute angle in gradians (100 gon = 90°)

Line Intersection Diagram

L₁ (m₁=2.00)L₂ (m₂=0.50)36.9°

Calculation Breakdown

StepFormulaValue
1m₁ − m₂1.500000
2|m₁ − m₂|1.500000
3m₁ · m₂1.000000
41 + m₁·m₂2.000000
5tan(α) = |m₁−m₂|/(1+m₁m₂)0.750000
6α = arctan(tan α)36.869898°

Reference: Standard Slope Pairs

Pairm₁m₂Acute AngleType
Horizontal & 45°0.0001.00045.00°Intersecting
Horizontal & −45°0.000-1.00045.00°Intersecting
Perpendicular (45° lines)1.000-1.00090.00°⊥ Perpendicular
45° & Horizontal1.0000.00045.00°Intersecting
Perpendicular pair2.000-0.50090.00°⊥ Perpendicular
Parallel (same slope)1.0001.0000.00°∥ Parallel
Steep & moderate3.0001.00026.57°Intersecting
Shallow & steep0.5002.00036.87°Intersecting
60° & Horizontal1.7320.00060.00°Intersecting
30° & Horizontal0.5770.00029.98°Intersecting
Planning notes, formulas, and examples

About the Tangent of Angle Between Two Lines Calculator — Slope & Equation

The **Tangent of Angle Between Two Lines Calculator** finds the angle formed where two straight lines intersect. Given the slopes m₁ and m₂ of two lines, the tangent of the acute angle between them is |m₁ − m₂| / (1 + m₁·m₂). This formula is fundamental in coordinate geometry, computer graphics, and engineering design.

You can enter slopes directly or provide line equations in the form y = mx + b, and the tool automatically extracts the slopes. It computes both the acute and obtuse angles between the lines, detects when lines are parallel (no intersection angle) or perpendicular (angle = 90°), and shows all results in degrees, radians, and gradians.

The angle between two lines appears in many practical contexts: determining the corner angle of a structural beam, finding the field of view between two sightlines, calculating the deviation angle of a road bend, or measuring the angular separation of two vectors in physics.

The calculator includes preset pairs for common slope combinations, a visual representation of the two lines intersecting at the origin, a reference table of standard slope pairs and their angles, and detailed output cards explaining each computed quantity. Whether you are solving a geometry homework problem or designing a physical structure, it gives the answer with full context.

When This Page Helps

Tangent of Angle Between Two Lines Calculator — Slope & Equation helps you avoid repetitive setup mistakes when solving trigonometric and coordinate-geometry problems. Instead of recalculating conversions, signs, and edge cases by hand, you can test inputs immediately, inspect intermediate values, and confirm final answers before submitting work or using numbers in downstream calculations. It surfaces key outputs like Acute Angle (degrees), Obtuse Angle (degrees), Acute Angle (radians) in one pass.

How to Use the Inputs

  1. Enter the required inputs (Input Mode, Slope m₁ (Line 1), Slope m₂ (Line 2)).
  2. Complete the remaining fields such as Line 1 (y =...), Line 2 (y =...), Decimal Precision.
  3. Review the output cards, especially Acute Angle (degrees), Obtuse Angle (degrees), Acute Angle (radians), tan(α).
  4. Compare the result with the formula, diagram, or example values to catch sign, unit, or rounding mistakes.
Formula used
tan(α) = |m₁ − m₂| / (1 + m₁·m₂). Acute angle: α = arctan(|m₁−m₂|/(1+m₁m₂)). Lines are parallel when m₁ = m₂. Lines are perpendicular when m₁·m₂ = −1 (denominator = 0).

Example Calculation

Result: 1

Using θ=45°, the calculator returns 1. This example mirrors the calculator's live computation flow and is useful for checking manual steps and unit handling.

Tips & Best Practices

  • If 1 + m₁·m₂ = 0 the lines are perpendicular — the angle is exactly 90°.
  • If m₁ = m₂ the lines are parallel (or coincident) — no angle between them.
  • The formula gives the tangent of the acute angle; subtract from 180° for the obtuse angle.
  • For vertical line (undefined slope), the angle from horizontal = 90° minus the other line's angle.
  • This formula works for any two non-vertical lines in the xy-plane.

What This Tangent of Angle Between Two Lines Calculator — Slope & Equation Solves

This calculator is tailored to tangent of angle between two lines calculator — slope & equation workflows, including common input modes, unit handling, and special-case behavior. It is designed for fast checking during homework, exam preparation, technical drafting, and coding tasks where trigonometric consistency matters.

How To Interpret The Outputs

Use the primary result together with supporting outputs to verify direction, magnitude, and validity. Cross-check against known identities or geometric constraints, and confirm that angle ranges, sign conventions, and domain restrictions are satisfied before using the numbers elsewhere.

Study And Practice Strategy

A reliable way to improve is to solve once manually, then verify with the calculator and explain any mismatch. Repeat this on varied examples and edge cases. The built-in preset scenarios for quick trials, comparison tables for side-by-side validation, visual cues that make trends and quadrants easier to read help you build pattern recognition and reduce sign or conversion errors over time.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • If two lines have slopes m₁ and m₂, the tangent of the acute angle α between them is tan(α) = |m₁ − m₂| / (1 + m₁·m₂). The angle is α = arctan of that expression.