Secant Line Calculator
Find the secant line between two points on a curve.
Computes slope and line equation for five function types, and plots the function with the secant drawn.
A secant line connects two points on a curve. For points (x1, f(x1)) and (x2, f(x2)), the slope is simply (f(x2) - f(x1)) / (x2 - x1). That is the average rate of change of f over the interval [x1, x2].
The secant line is the finite-difference approximation to the derivative. As x2 moves toward x1, the secant slope approaches the tangent slope f’(x1), which is how the derivative is defined. The secant is what you can actually measure; the tangent is the limiting ideal.
Once you have the slope m and either point, the line equation follows from point-slope form: y - f(x1) = m*(x - x1), simplified to y = mx + b where b = f(x1) - mx1.
The Mean Value Theorem guarantees that somewhere between x1 and x2, the tangent slope equals the secant slope, provided f is differentiable on the interval. This means there is always a point where the curve runs parallel to the secant line. The theorem does not tell you where exactly, but it tells you the point exists.
Secant lines are used heavily in numerical analysis. Newton’s method for root finding uses a tangent approximation; the secant method uses a secant instead, which avoids needing the derivative explicitly. The secant method is slower to converge but practical when derivatives are hard to compute.
In physics, if f(t) gives position, then the secant slope over [t1, t2] is average velocity over that interval. The tangent slope at a single instant is the instantaneous velocity. The gap between those two ideas is what calculus was invented to close.
The chart plots the function curve along with the secant line so you can see how closely (or loosely) the line tracks the curve between the two points.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.