How do you get speed from a position graph?

Speed is the slope of the position graph. A secant line joins two moments and gives the average speed between them. Slide the second moment closer, and the secant turns into the tangent line. Its slope, the limit of (s(t + h) − s(t))/h as h shrinks to 0, is the derivative: the speed at that instant.

Braking to a stop: at t = 1 s the car is 18 m along, going 16 m/s (57.6 km/h)0 m10 m20 m30 m40 m50 mh = 1 sΔs = 14 mpositiontangent: 16 m/s (exact)secant: 14 m/s
Position s(t)
18 m
Secant slope (average speed over h)
14 m/s
Exact derivative s′(t) (speed now)
16 m/s
Gap between them
2 m/s

Challenge: On the highway merge, find the moment the car reaches 25 m/s (90 km/h), within 0.1 m/s.

The moment you want the speed for.
The secant joins t and t + h. Shrink h toward 0.

Play

Pick a trip and slide the time. Then shrink h and watch the secant swing onto the tangent.

Challenge: On the highway merge, find the moment the car reaches 25 m/s (90 km/h), within 0.1 m/s. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

s′(t)=lim⁡h→0s(t+h)−s(t)hs'(t) = \lim_{h \to 0} \frac{s(t + h) - s(t)}{h}

A position graph shows how far along the road the car is at each moment. Its slope is the speed. When the graph is a straight line, that's rise over run. When it curves, the slope changes from moment to moment.

Pick two moments, tt and t+ht + h, and join them with a secant line. Its slope is the average speed between them:

s(t+h)−s(t)h\frac{s(t + h) - s(t)}{h}

Now shrink hh. The second point slides toward the first, and the secant swings onto the tangent line, the line that just touches the curve at tt. The slope it settles on is the derivative, the speed at that instant:

s′(t)=lim⁡h→0s(t+h)−s(t)hs'(t) = \lim_{h \to 0} \frac{s(t + h) - s(t)}{h}

When accelerating from a stop, at t=4t = 4 s the secants give 12.5, 11.25, then 10.125 m/s for hh = 2, 1, then 0.1 s. They close in on 10 m/s, the tangent's slope.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. Position during the speed change (first 5 s)s(t) = 20t - 2t^2
  2. Position nows(1) = 18\ \text{m}
  3. Position h laters(1 + 1) = 32\ \text{m}
  4. Secant slope: rise over run, the average speed over h\frac{s(t + h) - s(t)}{h} = \frac{32 - 18}{1} = 14\ \text{m/s}
  5. Let h → 0: the derivative, from the power rules'(t) = 20 - 4t,\quad s'(1) = 16\ \text{m/s}
  6. Gap between the secant and the tangent|14 - 16| = 2\ \text{m/s}

Export

Export PDF

Pick a trip, set the time with the first slider, and set hh with the second. The road at the top shows the car to scale, with an outline where it will be hh seconds later.

  • Each trip is a smooth formula for the first few seconds, then a steady speed. Braking stops the car at 5 s. The other trips hold their final speed after 10 s.
  • Set hh all the way to 0 to see why the limit is needed.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

s′(t)=lim⁡h→0s(t+h)−s(t)hs'(t) = \lim_{h \to 0} \frac{s(t + h) - s(t)}{h}
average speed=s(t+h)−s(t)h\text{average speed} = \frac{s(t + h) - s(t)}{h}
ddt tn=n tn−1\frac{d}{dt}\,t^n = n\,t^{n-1}
SymbolMeaningUnit
s(t)s(t)position at time tm
tttimes
hhstep between the two momentss
s′(t)s'(t)speed at time t (the derivative)m/s
  • A steeper graph means a faster car. A flat graph means the car is stopped.
  • When the car speeds up, the graph bends upward and the secant is steeper than the tangent.
  • With steady acceleration, the gap is exactly half the acceleration times h. Halve h and you halve the gap.

Print this card

Where it’s used

  • Physics
    Velocity is the derivative of position, and acceleration is the derivative of velocity.
  • Mechanical
    Motor and robot controllers estimate speed by dividing a small change in position by a small time step: a secant with a tiny h.
  • Driving & Travel
    Your average speed for a trip is a secant slope. The number on the speedometer is a tangent slope.

Questions people ask

What's the difference between average speed and speed at an instant?

Average speed is distance over a stretch of time, the slope of a secant line. Speed at an instant is what the speedometer shows right now, the slope of the tangent line. That's the derivative.

Why not just set h to 0?

Then the change in position is 0 and the time is 0, and 0 ÷ 0 has no value. The limit asks what the secant slope closes in on as h gets tiny, without ever being zero.

How does the power rule give the speed?

When accelerating from a stop, s = 1.25t². The power rule gives s′ = 2 × 1.25t = 2.5t. At t = 4 s that's 10 m/s, the same number the secants close in on: 12.5, then 11.25, then 10.125 m/s as h goes from 2 to 1 to 0.1 s.