# Gradient Calculator

Calculate the gradient (slope) between two points. Find rise, run, angle, and percentage gradient. Free online gradient calculator.

## What this calculates

Calculate the gradient between two points on a line. This tool gives you the slope, rise, run, angle of inclination, and percentage gradient all at once.

## Inputs

- **Point 1: X**
- **Point 1: Y**
- **Point 2: X**
- **Point 2: Y**

## Outputs

- **Gradient (Slope)** — The gradient of the line (rise / run).
- **Rise (Δy)** — The vertical change between the two points.
- **Run (Δx)** — The horizontal change between the two points.
- **Angle of Inclination** — formatted as text — The angle the line makes with the horizontal axis.
- **Percentage Gradient** — formatted as text — The gradient expressed as a percentage (rise/run × 100).
- **Distance Between Points** — The straight-line distance between the two points.

## Details

The gradient (or slope) measures how steep a line is. It is the ratio of the vertical change to the horizontal change between two points.

**The Formula:**

Gradient = Rise / Run = (y2 - y1) / (x2 - x1)

**Example:**

For points (2, 3) and (8, 15):

- Rise = 15 - 3 = 12
- Run = 8 - 2 = 6
- Gradient = 12 / 6 = 2

This means the line goes up 2 units for every 1 unit it moves to the right.

**Percentage Gradient:**

Multiply the gradient by 100 to get a percentage. A gradient of 0.12 means a 12% grade. This format is commonly used for road signs, railway grades, and accessibility ramps.

**Interpreting the Gradient:**

- **Positive gradient:** The line rises from left to right (uphill)
- **Negative gradient:** The line falls from left to right (downhill)
- **Zero gradient:** The line is horizontal (flat)
- **Undefined gradient:** The line is vertical (run = 0)

**Angle of Inclination:**

The angle the line makes with the positive x-axis is found using arctan(gradient). A gradient of 1 corresponds to a 45° angle. In construction and civil engineering, this angle determines structural feasibility.

## Frequently Asked Questions

**Q: What is the difference between gradient and slope?**

A: In most contexts, gradient and slope mean the same thing: rise over run. In the UK and many engineering fields, the term 'gradient' is preferred. In US math education, 'slope' is more common. Both are calculated the same way: (y2 - y1) / (x2 - x1).

**Q: How do I convert a gradient to an angle?**

A: Use the arctangent function: angle = arctan(gradient). A gradient of 1 gives 45°, a gradient of 0.5 gives about 26.57°, and a gradient of 0 gives 0° (flat). Most scientific calculators and programming languages have an atan or arctan function for this.

**Q: What does a percentage gradient mean on a road sign?**

A: A road sign showing 10% gradient means the road rises (or falls) 10 meters for every 100 meters of horizontal distance. That is a gradient of 0.10. Steep mountain roads often have gradients of 8-12%, while highway on-ramps typically stay below 6%.

**Q: Can a gradient be greater than 1 or less than -1?**

A: Absolutely. A gradient greater than 1 means the line is steeper than 45°. A gradient of 3, for example, means the line rises 3 units for every 1 unit of horizontal run. Similarly, a gradient of -2 means a steep downhill slope. There is no upper or lower limit on gradient values.

---

Source: https://vastcalc.com/calculators/math/gradient
Category: Math
Last updated: 2026-04-08
