HomeCalculatorsMathAnalytic GeometryLine Equation Calculator
Math calculator

Line Equation Calculator

Equation of the line through two plane points. Same engine as Coordinate Geometry. Vertical is x = x₁. Coincident points are invalid. Not Pythagorean. Not a second engine. Not CAS. Runs locally.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes
Input interpretation
Enter values to calculate.
Result
—
Verified scope
all published modes
Assurance
Core
Declared partition coverage
PASS · 8/8 declared partitions (distance, midpoint, slope, line, point-line, intersect, angle, invalid-domain) · Matrix
Known limitations
  • Core CVP does not include live graph, viewport, or pointer interaction.
Model
The unique line through two distinct plane points, as y = mx + b or x = x₁, with an engine-linked figure of the line.
Scope
Euclidean plane
Verification
Engine tested · Specification checked · v1.5.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
Versions
Calculation 1.5.0 · CVP protocol 1.0.0-proposed · Evidence 2026-09-22.geometry-cvp
Verification revision
2026-09-22.geometry-cvp · 3/3 property · digest c0f46759e9a3
Legacy regression
21/21 tests · Production surface contract 6/6
Trust layers
Verification VERIFIED · Production CURRENT · Overall CVP state: VERIFIED under CVP 1.0.0-proposed
Reference
O1 model · O2 expected_values · O2 numerical_behavior
Interfaces
PASS · UI (SSR) / REST / MCP — ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 1/1 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only.
Supplemental domain review
Not performed
Named expert review
Not performed
CVP suite
10/10 golden · 4/4 CVP boundary · 8/8 invalid · 3/3 property · 4/4 cross-interface · 2/2 cross-calculator · 6/6 CVP contract · Manifest
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Specification basis
Evidence
8 legacy golden · 3 legacy boundary · legacy regression suite · 10/10 oracle-backed golden · 8/8 invalid · Artifact integrity PASS
This calculator CURRENT · Public schema 1.5.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

Two-pointy − y₁ = m(x − x₁)
Slopem = (y₂ − y₁)/(x₂ − x₁)
StandardAx + By + C = 0
iSame engine as /coordinate-geometry. Distance and midpoint stay on that page. Vertical is x = x₁. Not CAS.

How to use

1

Enter two distinct points

(0, 1) and (2, 5) is y = 2x + 1. The distance page stays at /coordinate-geometry.

2

Read slope-intercept or x = x₁

y = 2x + 1, also 2x − y + 1 = 0. A vertical pair is x = x₁.

Example calculations

Common configurations with formula and result.

ϟ

Slope-intercept

(0, 1) to (2, 5)

m = 2
y = 2x + 1
ϟ

Vertical

(2, 0) to (2, 5)

x₂ = x₁
x = 2
ϟ

Horizontal

(0, 3) to (4, 3)

m = 0
y = 3

Line Equation calculator specification

Version 1.5.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
Two distinct points determine a unique line. This page is mode=line on math.geometry.coordinate. Non-vertical lines are y = mx + b; vertical lines are x = x₁. Coincident points are invalid. Not a second engine. Not Pythagorean. Not CAS.
What it calculates
The unique line through two distinct plane points, as y = mx + b or x = x₁, with an engine-linked figure of the line.
Inputs
  • x1
  • y1
  • x2
  • y2
Outputs
  • equation
  • standard
  • slope
  • intercept
  • A
  • B
  • C
  • vertical
Formula
y − y₁ = m(x − x₁)
Assumptions
  • Euclidean plane
  • Two distinct points
  • Not 3-D / spherical
  • Not Pythagorean
  • Not CAS
Units
  • length (consistent units)
Boundary conditions
  • missing coordinates → MISSING_REQUIRED_INPUT
  • coincident points → INVALID_INPUT
  • unknown mode (including cas, pythagorean) → INVALID_MODE
Example
x1=0 y1=1 x2=2 y2=5 → y = 2x + 1
Validation cases

2 published on this page · 21/21 tests · Production surface contract 6/6 · View evidence

  • x1=0 y1=1 x2=2 y2=5 → y = 2x + 1
  • mode=cas x1=0 y1=1 x2=2 y2=5 → INVALID_MODE
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Calculation version
1.5.0

Frequently asked questions

Key distinctions behind the calculation.

Is this a second coordinate engine?

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

What if the points coincide?

There is no unique line. The engine returns INVALID_INPUT.

Where are distance and midpoint?

/calc/math/coordinate-geometry is the same engine: mode=distance and mode=midpoint.