Gradient/Slope Calculator – Find Gradient at a Point
Calculate the gradient or slope of a line or curve with our free online calculator. Find gradients from two points or as the derivative of a function at any point.
Understanding Gradient and Slope
Gradient (or slope) measures how steep a line or curve is. For a straight line, it's the ratio of vertical change (rise) to horizontal change (run). For a curve, the gradient at a point is the slope of the tangent line – the line that just touches the curve at that point.
Positive gradient means the line goes uphill (left to right). Negative gradient means downhill. Zero gradient is horizontal. Undefined gradient (division by zero) is a vertical line.
How to Calculate Gradient
From Two Points
- Find the difference in y-values (rise)
- Find the difference in x-values (run)
- Divide rise by run
From a Function
- Find the derivative of the function
- Evaluate at the given x-value
- This gives the instantaneous rate of change
Worked Examples
Example 1: Gradient from Two Points
Example 2: Negative Gradient
Example 3: Gradient of y = x² at x = 2
Example 4: Gradient of sin(x) at x = 0
Quick Fact
The concept of gradient as "rise over run" dates back to ancient builders and surveyors. However, the mathematical formalization of finding gradients of curves (calculus) was independently developed by Newton and Leibniz in the 1670s, revolutionizing mathematics and science.
Frequently Asked Questions
What does a gradient of 0 mean?
Zero gradient means a horizontal line – no rise, only run. The y-value stays constant. For curves, zero gradient indicates a maximum, minimum, or inflection point.
What is an undefined gradient?
Undefined gradient occurs with vertical lines where x₁ = x₂, causing division by zero. The line goes straight up and down – infinite steepness.
How does gradient relate to angle?
Angle = arctan(gradient). A gradient of 1 gives 45°. Gradient of 0 gives 0°. As gradient approaches infinity, angle approaches 90°.
What's the difference between gradient and slope?
They're the same thing! "Slope" is more common in American English, "gradient" in British English. In multivariable calculus, gradient has a more specific meaning (a vector of partial derivatives).
How is gradient used in real life?
Road signs show gradient as percentages (10% grade = 0.1 gradient). Roof pitch, wheelchair ramp requirements, and ski slope difficulty all use gradient. In economics, gradient represents marginal rates.
Can gradient be greater than 1?
Absolutely! A gradient of 2 means rising 2 units for every 1 unit across. Steep hills, roller coasters, and rocket trajectories can have gradients much greater than 1.
Other Free Tools
Tangent Line Calculator – Find Tangent Line Equation Online
Find the equation of the tangent line to any function at any point with our free online tangent line calculator. Get slope, y-intercept, and the full tangent equation with steps.
Derivative Calculator – Differentiate Functions Step by Step
Calculate the derivative of any function with our free online derivative calculator. Applies power, product, quotient, and chain rules with detailed step-by-step differentiation shown.
Slope Calculator – Find the Slope of a Line Online
Calculate the slope or gradient of any line using two points or a linear equation with our free online slope calculator. Find slope, intercepts, and line equations easily.
Definite Integral Calculator – Compute Integrals Numerically
Calculate definite integrals numerically with our free online integral calculator. Evaluate the area under any function curve over any interval with accurate numerical results.
Limit Calculator – Evaluate Limits of Functions Online
Calculate limits of any function as x approaches a value or infinity with our free online limit calculator. Evaluates one-sided and two-sided limits with clear results.
Riemann Sum Calculator – Approximate Integral with Rectangles
Approximate integrals using Riemann sums with our free online Riemann sum calculator. Choose from left, right, midpoint, or trapezoidal methods with visual rectangle illustrations.
2D Function Plotter – Plot y = f(x) Graphs Online
Plot any mathematical function y = f(x) on an interactive graph with our free online 2D function plotter. Visualize polynomials, trig functions, exponentials, and more instantly.
Free Online Scientific Calculator – Advanced Math Functions
Perform complex scientific calculations online with our free scientific calculator. Supports trigonometry, logarithms, exponents, roots, and more – ideal for students and professionals.