Beginner

Triangle Slope Calculator — Slopes of All Three Sides from Vertices

Enter the coordinates of vertices A, B, C to get the slope (gradient), length, and interior angle of each side, alongside the area and perimeter of the triangle.
x-coordinate of vertex A
y-coordinate of vertex A
x-coordinate of vertex B
y-coordinate of vertex B
x-coordinate of vertex C
y-coordinate of vertex C
Slope of AB
0

Rise / run along side AB

Slope of AB
0
Slope of BC
-1
Slope of CA
3
Length AB
4
Length BC
4.2426
Length CA
3.1623
Angle at A
71.565°
Angle at B
45°
Angle at C
63.435°
Area
6
Perimeter
11.4049
ABC
Step by step
  1. 1

    Rise (Δy = y_B − y_A)

    0 − 0 = 0
  2. 2

    Run (Δx = x_B − x_A)

    4 − 0 = 4
  3. 3

    Slope of AB = rise ÷ run

    0 ÷ 4 = 0
    A positive slope rises left to right; a negative slope falls.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

For a triangle with vertices A(x₁,y₁), B(x₂,y₂), C(x₃,y₃): slope of AB = (y₂−y₁)/(x₂−x₁) and similarly for BC, CA. Side lengths use the distance formula. Area = ½|x₁(y₂−y₃)+x₂(y₃−y₁)+x₃(y₁−y₂)|. Enter all three vertices to get every slope, length, angle, area and perimeter at once.

Formula
slope = (y₂ − y₁) / (x₂ − x₁) • Area = ½|x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)|
How this is calculated

The slope (gradient) of a line segment between two points (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁) / (x₂ − x₁). It measures how much the segment rises (or falls) for every unit it moves horizontally. A vertical segment has an undefined slope because the denominator is zero; any other slope is a finite real number, including zero for a horizontal segment.

A triangle in the coordinate plane has three sides — AB, BC, CA — each with its own slope. These slopes are generally all different unless two sides happen to be parallel (which would make the "triangle" degenerate). The calculator evaluates each slope directly from the vertex coordinates, then also computes each side's length via the distance formula and each interior angle via the Law of Cosines.

The area is computed from the Shoelace (surveyor's) formula: Area = ½|x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)|. If this equals zero the three points are collinear and no real triangle exists, so the calculator returns a warning.

Frequently asked questions

A side is vertical if both its endpoints have the same x-coordinate. The slope formula divides by x₂ − x₁ = 0, which is undefined. Vertical sides are perfectly valid — the calculator labels them "undefined (vertical)" rather than returning an error.

No — if two sides were parallel they would never meet at a vertex, so no triangle could be formed. All three slopes of a valid (non-degenerate) triangle are distinct, though two of the three sides could approach parallelism in a very flat triangle.

The Shoelace formula gives Area = ½|x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)|. It is exact for any triangle regardless of orientation and does not require computing side lengths first.

Also known as

triangle slope calculator
slope of triangle sides from vertices
gradient of triangle sides
coordinate triangle slope formula
rise over run triangle sides
find slope of triangle side
triangle vertices slope calculator

APA

TG we-Calculate Editorial Team. (2026). Triangle Slope Calculator — Slopes of All Three Sides from Vertices [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/triangle-slope-calculator

Chicago

TG we-Calculate Editorial Team. "Triangle Slope Calculator — Slopes of All Three Sides from Vertices." TG we-Calculate. 2026. https://we-calculate.com/calculator/triangle-slope-calculator.

IEEE

TG we-Calculate Editorial Team, "Triangle Slope Calculator — Slopes of All Three Sides from Vertices," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/triangle-slope-calculator

BibTeX

@misc{wecalculate_triangle_slope_calculator, title = {Triangle Slope Calculator — Slopes of All Three Sides from Vertices}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/triangle-slope-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?