Gradient Definition: Meaning Formula and Examples

#Gradient Definition
TL;DR
A gradient is the change in y divided by the change in x: how steeply, and which way, a graph climbs. It equals the slope and reads as a rate, an angle and a percentage.
Vaishali Tomar·reviewed byMadhukar VLast updated on December 2, 202612 min read

Key Points

  • The gradient definition: gradient equals the change in y divided by the change in x, and "gradient" and "slope" mean the same thing.
  • The sign gives direction (up or down to the right) and the size gives steepness.
  • When the axes carry units, the gradient is a rate of change, such as kilometres per hour.
  • A gradient equals tan θ, and a percentage grade is the gradient times 100, so 100% is a 45° climb, not a wall.

One Number That Tells You How Hard a Climb Is

A road sign reading "10%" tells a driver how steep the hill is before the car reaches it. The road climbs 11 m for every 1010 m across: as one number, 110=0.1\frac{1}{10} = 0.1. An older "1 in 5" sign tells a lorry driver how hard the next stretch will pull against the engine.

That number is a gradient, from the Latin gradi, to step. Roads, roofs and railways all needed one honest measure of "how steep"; made exact, it measures far more than hills.

a gradient definition example, a road that rises 1 metre for every 10 metres across
A road drawn to scale climbing 1 m over 10 m across, with a warning sign reading 10% and the gradient 1 ÷ 10 = 0.1.

What Is the Gradient Definition in Maths?

The gradient of a graph measures its steepness and direction: the change in yy divided by the change in xx. In plain terms: for every step sideways, how far up or down?

gradient=ΔyΔx\text{gradient} = \frac{\Delta y}{\Delta x}

Δ\Delta means "change in", so a gradient of 33 means up 33 for every 11 to the right. "Gradient" is the usual word in the UK and much of the Commonwealth, "slope" in the US; the slope and gradient are identical. Reading it off y=mx+cy = mx + c is covered on the gradient of a line page.

What Is the Gradient Formula?

For a line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), the gradient is

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}
Symbol Meaning
mm the gradient
(x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2) two points on the line
y2−y1y_2 - y_1 the rise (change in yy)
x2−x1x_2 - x_1 the run (change in xx)

Either point can come first, as long as the order matches top and bottom. The step-by-step method is on finding slope from two points.

What Are the Types of Gradient?

Every gradient is one of four types, and its sign or form tells you the line's shape at a glance.

Type Value The line
Positive m>0m > 0 rises left to right
Negative m<0m < 0 falls left to right
Zero m=0m = 0 horizontal
Undefined no value vertical (run is 00)

The size is the steepness: 44 is steeper than 11, which is steeper than 14\frac{1}{4}, and −4-4 is as steep as 44, only downhill. A gradient of 11 is a 45°45° climb.

the sign of a gradient gives direction and its size gives steepness
Four lines through the origin with gradients 1/4, 1, 4 and −1: the larger the gradient the steeper the line, and the negative one falls to the right.

Zero and undefined are opposites, not twins: one line never climbs, the other does nothing but climb.

Why Is the Gradient Called a Rate of Change?

Put real quantities on the axes and the same number becomes a rate: how fast yy responds when xx changes. Its units are the units of yy over the units of xx. A car at the 6060 km mark after 11 hour and the 210210 km mark after 3.53.5 hours has gradient

210−603.5−1=1502.5=60 km/h\frac{210 - 60}{3.5 - 1} = \frac{150}{2.5} = 60 \text{ km/h}

its speed.

the gradient of a distance–time graph is the speed
A distance–time graph with a straight line through (1 h, 60 km) and (3.5 h, 210 km), a slope triangle of 2.5 h across and 150 km up, and the gradient 60 km/h.

That is why a hiker calls it steepness and a scientist a rate of change. Behind both is rise over run: the rise responds, the run drives. On any straight line, the gradient is the exchange rate between the two quantities.

Gradient as the Tangent of an Angle

A gradient equals the tangent of the angle θ\theta a line makes with the x-axis, because rise is opposite θ\theta and run is adjacent. (In a right triangle, tan⁡θ\tan\theta is the opposite side divided by the adjacent side.)

m=tan⁡θm = \tan\theta
the gradient of a line is the tangent of its angle with the x-axis
Three slope triangles: rise 3 over run 1 gives m = 3 and θ = 71.6°; rise 1 over run 1 gives m = 1 and θ = 45°; rise 1 over run 3 gives m = 1/3 and θ = 18.4°.

Angle and gradient do not grow evenly: doubling 30°30° to 60°60° triples the gradient, from about 0.580.58 to 1.731.73, and near 90°90° the gradient grows without limit. So a gradient of 3030 is not a 30°30° climb; it is about 88°88°.

Try It Yourself

In the tool, put the blue handles on (0,0)(0, 0) and (4,1)(4, 1) for m1=1/4m_1 = 1/4, then drag the right one to (4,4)(4, 4) for the 45°45° line. Orange handles on (0,0)(0, 0) and (−4,4)(-4, 4) give m2=−1m_2 = -1: just as steep, downhill.

Ratios and Percentages: Gradients on Signs and Plans

Signs and plans write gradients as "1 in n" or as a percentage grade. "1 in n" means gradient 1n\frac{1}{n}, so a "1 in 12" ramp has gradient ≈0.083\approx 0.083. A percentage grade is the gradient times 100100: 110\frac{1}{10} is 10%10\%.

A 100%100\% grade is gradient 11, a 45°45° climb, not a wall; a 20%20\% road rises at only about 11.3°11.3°. Strictly, a gradient uses horizontal distance; along the slope you would get the sine instead, which barely differs on gentle slopes.

percentage grade equals gradient times 100 and a 100 percent grade is 45 degrees
Three triangles drawn to scale: a 5% grade, 1/20, about 2.9 degrees; a 20% grade, 1/5, about 11.3 degrees; and a 100% grade, gradient 1, a 45 degree climb.

The Gradient of a Curve

On a curve the gradient changes from point to point. The average gradient between two points is that of the chord (the straight line) joining them; the gradient at a point is that of the tangent there. On y=x24y = \frac{x^2}{4} it is −32-\frac{3}{2} at x=−3x = -3, 12\frac{1}{2} at x=1x = 1 and 22 at x=4x = 4.

on a curve the gradient changes from point to point and equals the gradient of the tangent
The curve y = x²/4 with tangent lines at three points: gradient −3/2 at x = −3, gradient 1/2 at x = 1 and gradient 2 at x = 4.

Finding that exactly is the start of differential calculus, where the derivative is the slope of a tangent line.

Examples of Gradient

Example 1

A line rises 6 units for every 2 across. What is its gradient?

  1. Gradient is rise over run.
  2. 62=3\frac{6}{2} = 3.

Answer: 33.

Example 2

A path rises 3 m over 12 m of ground. What is its gradient?

  1. 12÷3=412 \div 3 = 4 is tempting, but a gradient of 4 means a climb of about 76°76°.
  2. This path is gentle, so the fraction is upside down.
  3. Up over across: 312=14\frac{3}{12} = \frac{1}{4}.
gradient is up over across, not across over up
A slope triangle drawn to scale, 12 m across and 3 m up with an angle of about 14 degrees; 3 ÷ 12 = 1/4 is marked right and 12 ÷ 3 = 4 is marked wrong.

Answer: 14\frac{1}{4}, a 25%25\% grade, about 14°14°.

Example 3

A line passes through (2, 7) and (6, −1). Find its gradient.

  1. Rise: −1−7=−8-1 - 7 = -8.
  2. Run: 6−2=46 - 2 = 4.
  3. −84=−2\frac{-8}{4} = -2.

Answer: −2-2; it falls 2 for every 1 to the right.

Example 4

A sign reads "1 in 8". Write the gradient as a fraction, decimal and percentage.

  1. "1 in 8" means 18\frac{1}{8}.
  2. 1÷8=0.1251 \div 8 = 0.125, and 0.125×100=12.5%0.125 \times 100 = 12.5\%.

Answer: 18\frac{1}{8}, 0.1250.125 or 12.5%12.5\%.

Example 5

A car's distance–time graph runs straight through (0, 0) and (4, 200), in metres and seconds. What is the gradient, and what does it mean?

  1. 200−04−0=50\frac{200 - 0}{4 - 0} = 50.
  2. Units: metres over seconds.

Answer: 5050 m/s, the car's speed.

Example 6

Find the average gradient of y = x² between x = 1 and x = 3.

  1. The points are (1,1)(1, 1) and (3,9)(3, 9).
  2. 9−13−1=4\frac{9 - 1}{3 - 1} = 4.

Answer: 44 (at x=2x = 2 the tangent has gradient exactly 44).

What Are Common Mistakes With the Gradient Definition?

Mistake 1: Flipping the fraction

Where it slips in: The across distance is given first.

Don't do this: Divide across by up, as in 12÷312 \div 3.

The correct way: Up over across, every time. The student who second-guesses can check the picture: a gentle path needs a gradient well below 11.

Mistake 2: Confusing zero with undefined

Where it slips in: Horizontal and vertical lines.

Don't do this: Call a vertical line's gradient 00.

The correct way: Horizontal: rise 00, gradient 00. Vertical: run 00, no gradient.

Mistake 3: Treating a 100% grade as vertical

Where it slips in: "100%" sounds completely steep.

Don't do this: Draw it as a wall.

The correct way: 100%100\% is gradient 11, a 45°45° climb; 50%50\% is about 26.6°26.6°.

Mistake 4: Reporting a gradient without units

Where it slips in: Graphs of real quantities.

Don't do this: Write "gradient = 60" and stop.

The correct way: Say 6060 km/h, then ask if it makes sense. NASA lost the Mars Climate Orbiter in 1999 after ground software used English units and the spacecraft metric.

Where Does the Gradient Idea Come From, and Where Is It Used?

The gradient began as a builder's and surveyor's measure long before algebra, and it still sets the rules.

  • Roads and railways post gradients so drivers prepare; railways stay gentle because smooth rails limit how steep a train can climb or brake.
  • Ramps: US ADA accessibility standards cap a ramp run at 1:121:12.
  • Maps: close contour lines mean a steep gradient.
  • Science: distance–time gradients give speed, speed–time gradients give acceleration.

Like the "10%" sign, the gradient turns a shape into a statement about how one quantity drives another.

Conclusion

  • The gradient definition: change in yy ÷ change in xx, the steepness and direction of a graph, and the same as slope.
  • Sign is direction and size is steepness; horizontal is 00, vertical is undefined.
  • With units, a gradient is a rate; m=tan⁡θm = \tan\theta, and a percentage grade is 100m100m, so 100%100\% is 45°45°.
  • On a curve the gradient changes and is measured by the tangent.

Practise What You Have Learned

  1. Find the gradient through (0,1)(0, 1) and (4,13)(4, 13).
  2. What does the gradient of a velocity–time graph represent?
  3. Give the gradient of the line through (3,5)(3, 5) and (3,9)(3, 9).
  4. Write a "1 in 25" gradient as a percentage.
  5. A tank holds 8080 litres at t=2t = 2 min and 200200 litres at t=8t = 8 min. Find the gradient with units.

Answer to Question 1: 124=3\frac{12}{4} = 3.

Answer to Question 2: acceleration.

Answer to Question 3: undefined, because the run is 00.

Answer to Question 4: 4%4\%.

Answer to Question 5: 1206=20\frac{120}{6} = 20 litres per minute.

If an answer came out upside down, revisit Mistake 1.

To build the gradient concept with a teacher, explore Bhanzu's algebra tutor, geometry tutor or math tutoring.

Want a live Bhanzu trainer to walk your child through gradients and rates of change? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. OpenStax, College Algebra 2e, Section 4.1: Linear Functions (slope as a rate of change) (2021). openstax.org
  2. OpenStax, Calculus Volume 1, Section 3.1: Defining the Derivative. openstax.org
  3. U.S. Access Board, Guide to the ADA Accessibility Standards, Chapter 4: Ramps and Curb Ramps. access-board.gov
  4. NASA Science, Mars Climate Orbiter mission page. science.nasa.gov

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the gradient definition in simple terms?
How steep a line is and which way it slants: change in yy over change in xx.
Is gradient the same as slope?
Yes. The gradient definition and the slope definition are the same: two names for ΔyΔx\frac{\Delta y}{\Delta x}.
What is a 1 in 4 gradient?
One up for every four across: 0.250.25, or 25%25\%, about 14°14°.
Does the gradient have units?
Only when the axes do: the units of yy over the units of xx.
How do I find a gradient from a graph?
Pick two points on exact grid corners, far apart, count up and across, and divide up by across.
✍️ Written By
Vaishali Tomar
Vaishali Tomar
Subject Matter Expert
Vaishali Tomar is an educator and content specialist with over four years of experience teaching and developing learning resources for students from UKG to Grade 8. At Bhanzu, she creates lesson plans, assessments and educational content that simplify math through structured, student-friendly learning. She holds an M.Sc. in Computer Science and co-founded Qeemle, an online magazine, during her college years, which built her skills in content creation and editing.
LinkedIn
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →