HomeCalculatorsMathGeometryAngle Between Lines Calculator
Math calculator

Angle Between Lines Calculator

Acute angle between two plane lines, each given by two points. Parallel is 0°. Perpendicular is 90°. Degenerate points are invalid. Same engine as Coordinate Geometry. Not a second engine. Not CAS. Runs locally.

Instant result
Result

Enter values to calculate.

Inputs
Mode
Formula
Trust summary Engine tested · Specification checked · 11/11 tests · Production surface contract 3/3 · v1.4.0
Input interpretation
Enter values to calculate.
Result
Model
The acute angle between two plane lines, each given by two distinct points.
Scope
Euclidean plane
Verification
Engine tested · 11/11 tests · Production surface contract 3/3 · Specification checked · v1.4.0
Named expert review
Optional · Not performed
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Specification basis
Evidence
5 golden · 1 boundary · 5 property · Production surface contract 3/3 · Artifact integrity PASS
Production
Embedded snapshot: STALE · Last attested schema matched 1.4.0 snapshot / local build · Semantic contract ✓ · Last attestation PASS · current evidence changed · re-attestation required · Public/cache ✓ · Origin ✓ · Live production status STALE (2 capabilities; 162 remain CURRENT) @ 2026-09-20T09:01:12.147Z
Semantic contract
PASS

Formulas

Core equations used by this calculator.

Acute angleθ = arccos(|A₁A₂ + B₁B₂| / (√(A₁²+B₁²) √(A₂²+B₂²)))
Range0° ≤ θ ≤ 90°
Line from two pointsA = y₂ − y₁, B = x₁ − x₂, C = x₂ y₁ − y₂ x₁
iSame engine as /coordinate-geometry. Intersection stays on /line-intersection. Two-point line stays on /line-equation. Not CAS.

How to use

1

Enter the first line as two distinct points

(0, 0) and (2, 2) is y = x.

2

Enter the second line as two distinct points

(0, 0) and (2, 0) is y = 0. The acute angle is 45°.

Example calculations

Common configurations with formula and result.

ϟ

45°

(0, 0)–(2, 2) and (0, 0)–(2, 0)

arccos(1/√2)
45°
ϟ

Perpendicular

(0, 0)–(2, 0) and (0, 0)–(0, 2)

n₁ · n₂ = 0
90°
ϟ

Parallel

(0, 0)–(2, 0) and (0, 1)–(2, 1)

Δ = 0

Angle Between Lines calculator specification

Version 1.4.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
The acute angle θ between two lines A₁x + B₁y + C₁ = 0 and A₂x + B₂y + C₂ = 0 is arccos(|A₁A₂ + B₁B₂| / (√(A₁²+B₁²) √(A₂²+B₂²))), in [0°, 90°]. This page is mode=angle on math.geometry.coordinate. Each line is two distinct points. Parallel and coincident lines are 0°. Perpendicular lines are 90°. Not a second engine. Not Pythagorean. Not CAS.
What it calculates
The acute angle between two plane lines, each given by two distinct points.
Inputs
  • x1
  • y1
  • x2
  • y2
  • x3
  • y3
  • x4
  • y4
Outputs
  • angle_deg
  • angle_rad
  • status
  • obtuse_deg
  • standard1
  • standard2
Formula
θ = arccos(|A₁A₂ + B₁B₂| / (√(A₁²+B₁²) √(A₂²+B₂²)))
Assumptions
  • Euclidean plane
  • Two distinct points per line
  • Undirected lines (acute angle)
  • Not 3-D / spherical
  • Not Pythagorean
  • Not CAS
Units
  • degree
  • radian
Boundary conditions
  • missing coordinates → MISSING_REQUIRED_INPUT
  • coincident points on a line → INVALID_INPUT
  • parallel distinct → status=parallel, 0°
  • same line → status=coincident, 0°
  • unknown mode (including cas, pythagorean) → INVALID_MODE
Example
x1=0 y1=0 x2=2 y2=2 x3=0 y3=0 x4=2 y4=0 → 45°
Validation cases

2 published on this page · 11/11 tests · Production surface contract 3/3 · View evidence

  • x1=0 y1=0 x2=2 y2=2 x3=0 y3=0 x4=2 y4=0 → 45°
  • mode=cas x1=0 y1=0 x2=2 y2=2 x3=0 y3=0 x4=2 y4=0 → INVALID_MODE
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Calculation version
1.4.0
}

Frequently asked questions

Key distinctions behind the calculation.

Is this a second coordinate engine?

No. It is mode=angle on math.geometry.coordinate, the same engine as /calc/math/coordinate-geometry.

Is the result the acute angle?

Yes. θ is in [0°, 90°]. Parallel and coincident lines are 0°. Perpendicular lines are 90°. The obtuse supplement is 180° − θ.

What if a pair of points coincides?

That pair does not determine a unique line. The engine returns INVALID_INPUT.