AP · Calculus AB · Related Rates

Related Rates

16 min readUpdated November 30, 2026FreeAP Calculus AB, Derivatives in Context

A related-rates problem gives you the rate at which one quantity changes and asks for the rate of another quantity linked to it. You write one equation that connects the quantities, differentiate both sides with respect to time tt, and only then substitute the values at the instant you care about. The answer is a rate, so it needs units, and its sign tells you whether the quantity is growing or shrinking.

Quick check

  1. If yy depends on tt, what is the derivative of y2y^2 with respect to tt?Show answerHide answer

    2ydydt2y\frac{dy}{dt}. By the chain rule, differentiate y2y^2 as 2y2y, then multiply by the derivative of yy with respect to tt.

  2. Differentiate xyxy with respect to tt, where xx and yy both depend on tt.Show answerHide answer

    dxdty+xdydt\frac{dx}{dt}y + x\frac{dy}{dt}. It is a product, so you use the product rule.

  3. A tank's depth hh is falling at 3 centimeters per minute. What is dhdt\frac{dh}{dt}?Show answerHide answer

    dhdt=−3\frac{dh}{dt} = -3 centimeters per minute. The depth is decreasing, so its rate is negative.

Know these already? Jump to the practice questions

What you'll be able to do

  • Write one equation that links the changing quantities, using geometry where needed.
  • Solve for an unknown rate by differentiating with respect to time, then substituting.
  • Use similar triangles to remove an extra variable in cone and shadow problems.
  • State the answer with units and the correct sign, and interpret it.

Key terms

Related rates

Rates of change of quantities that are linked by an equation, so knowing some rates lets you find the others.

In plain English
If two things are tied together, how fast one changes controls how fast the other changes.
Don't write
"the rates are equal"; linked rates are usually different sizes.

Rate with respect to time

The derivative dQdt\frac{dQ}{dt} of a quantity QQ: positive if QQ is increasing and negative if it is decreasing.

In plain English
How fast QQ is changing at that instant, and in which direction.
Don't write
A positive rate for a quantity that is shrinking.

Every quantity in the story, such as a length, an area or a volume, changes with time. If an equation links them, differentiating it with respect to tt links their rates. Each changing variable picks up its own rate by the chain rule: x2x^2 becomes 2xdxdt2x\frac{dx}{dt}.

  1. Draw a diagram and name every changing quantity with a letter.
  2. List the rate you know, the rate you want and the values at the instant asked about. A decreasing quantity ("draining", "falling", "approaching") has a negative rate.
  3. Write one equation linking the quantities.
  4. Differentiate both sides with respect to tt.
  5. Substitute and solve for the unknown rate. Give its units (the quantity's units per unit of time); a negative answer means that quantity is decreasing.

For example, a circle's area is A=πr2A = \pi r^2. Differentiating with respect to tt gives dAdt=2πrdrdt\frac{dA}{dt} = 2\pi r\frac{dr}{dt}. If the radius grows at 22 centimeters per second, then when r=5r = 5 centimeters, dAdt=2π(5)(2)=20π\frac{dA}{dt} = 2\pi(5)(2) = 20\pi square centimeters per second.

Key idea

Differentiate the linking equation with respect to time, so that every changing variable brings its own rate with it.

Check yourself

Differentiate x2+y2=100x^2 + y^2 = 100 with respect to tt.
Show answerHide answer

2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0. The constant 100100 has derivative 00.

Why substitute only after differentiating?

The values you are given hold only at one instant. If you substitute a changing value before differentiating, you treat it as a constant, and its rate disappears.

Take a ladder with its foot xx feet from a wall and its top yy feet up, so x2+y2=169x^2 + y^2 = 169. Putting x=5x = 5 in first gives 25+y2=16925 + y^2 = 169, and differentiating gives 2ydydt=02y\frac{dy}{dt} = 0: the top would never move. Differentiating first keeps the term 2xdxdt2x\frac{dx}{dt} that drives the motion.

Only quantities that are fixed for the whole problem, such as the ladder's length of 1313 feet or the height of a lamppost, may go in before you differentiate.

Check yourself

A balloon's radius is r=4r = 4 centimeters at one instant. Can you write its volume as V=43π(4)3V = \frac{4}{3}\pi(4)^3 before differentiating?
Show answerHide answer

No. The radius is changing, so V=43πr3V = \frac{4}{3}\pi r^3 must be differentiated first, giving dVdt=4πr2drdt\frac{dV}{dt} = 4\pi r^2\frac{dr}{dt}; only then put in r=4r = 4.

How do you set up cones, spheres and shadows?

Learn this (there is no formula sheet; a question may also state a formula):

  • Sphere: V=43πr3V = \frac{4}{3}\pi r^3
  • Cone: V=13πr2hV = \frac{1}{3}\pi r^2h
  • Circle: A=πr2A = \pi r^2; right triangle: a2+b2=c2a^2 + b^2 = c^2

A cone has two changing variables, rr and hh, but you usually know a rate for only one. In a cone-shaped tank, vertex down, the water forms a smaller cone of the same shape, so similar triangles give rh=RH\frac{r}{h} = \frac{R}{H}, where RR and HH are the tank's radius and height. Replace rr before you differentiate, so VV depends on hh alone.

Shadows work the same way: the light, the top of the person and the tip of the shadow lie on one line, making two similar right triangles that link the shadow's length to the person's distance from the light.

For distances between moving objects, put the objects on perpendicular axes and use D2=x2+y2D^2 = x^2 + y^2.

Check yourself

A cone-shaped tank has radius 33 meters and height 66 meters. Write rr in terms of hh for the water inside.
Show answerHide answer

r=h2r = \frac{h}{2}. Similar triangles give rh=36\frac{r}{h} = \frac{3}{6}.

Worked example 1: A sliding ladder

Question: A 1313-foot ladder leans against a vertical wall. The foot of the ladder slides away from the wall at 22 feet per second. How fast is the top of the ladder moving down the wall when the foot is 55 feet from the wall?

What tells you the method

Two lengths change together and one rate is given; the right angle gives the equation linking them.

  1. Step 1: Name the quantities.

    Let xx be the distance from the wall to the foot and yy the height of the top. You know dxdt=2\frac{dx}{dt} = 2 and want dydt\frac{dy}{dt} when x=5x = 5.

    Why

    The foot moves away, so xx is increasing and its rate is positive.

  2. Step 2: Write and differentiate the equation.

    x2+y2=169x^2 + y^2 = 169, so 2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0.

    Why

    The ladder's length of 1313 feet is fixed, so 169169 may go in before differentiating.

  3. Step 3: Find yy, then substitute and solve.

    25+y2=16925 + y^2 = 169 gives y=12y = 12, so 2(5)(2)+2(12)dydt=02(5)(2) + 2(12)\frac{dy}{dt} = 0 and dydt=−2024=−56\frac{dy}{dt} = -\frac{20}{24} = -\frac{5}{6}.

    Why

    You need every value at that instant, and the negative sign shows yy is decreasing.

Check it

The ladder is steep (y=12y = 12 is much more than x=5x = 5), so the top should drop more slowly than the foot slides; 56<2\frac{5}{6} < 2 fits.

Answer

dydt=−56\frac{dy}{dt} = -\frac{5}{6} feet per second: the top slides down the wall at 56\frac{5}{6} feet per second.

Worked example 2: Filling a cone

Question: Water flows at 33 cubic feet per minute into a tank shaped like a cone, vertex down, with height 1010 feet and top radius 44 feet. The volume of a cone is V=13πr2hV = \frac{1}{3}\pi r^2h. How fast is the depth of the water rising when the water is 55 feet deep?

What tells you the method

You know dVdt\frac{dV}{dt} and want dhdt\frac{dh}{dt}, but the cone formula also contains rr, so you need similar triangles first.

  1. Step 1: Remove rr.

    Similar triangles give rh=410\frac{r}{h} = \frac{4}{10}, so r=2h5r = \frac{2h}{5} and V=13π(2h5)2h=4π75h3V = \frac{1}{3}\pi\left(\frac{2h}{5}\right)^2h = \frac{4\pi}{75}h^3.

    Why

    With VV in terms of hh alone, the derivative contains only the rate you want.

  2. Step 2: Differentiate with respect to tt.

    dVdt=4π25h2dhdt\frac{dV}{dt} = \frac{4\pi}{25}h^2\frac{dh}{dt}.

    Why

    The power rule gives 3⋅4π75h2=4π25h2\frac{3 \cdot 4\pi}{75}h^2 = \frac{4\pi}{25}h^2, and the chain rule adds dhdt\frac{dh}{dt}.

  3. Step 3: Substitute dVdt=3\frac{dV}{dt} = 3 and h=5h = 5.

    3=4π25(25)dhdt=4πdhdt3 = \frac{4\pi}{25}(25)\frac{dh}{dt} = 4\pi\frac{dh}{dt}, so dhdt=34π≈0.239\frac{dh}{dt} = \frac{3}{4\pi} \approx 0.239.

    Why

    The depth 55 is the value at the instant asked about, so it goes in only now.

Check it

At h=5h = 5 the water surface has radius 22 and area 4π4\pi, and 33 cubic feet per minute spread over 4π4\pi square feet raises the level by 34π\frac{3}{4\pi} feet per minute.

Answer

dhdt=34π≈0.239\frac{dh}{dt} = \frac{3}{4\pi} \approx 0.239 feet per minute.

Worked example 3: Two cars and a closing distance

Question: Car A is 0.60.6 miles north of an intersection, driving south toward it at 5050 miles per hour. At the same moment car B is 0.80.8 miles east of the intersection, driving east away from it at 3030 miles per hour. Is the distance between the cars increasing or decreasing at that moment, and at what rate?

What tells you the method

The roads are perpendicular, so Pythagoras links the three distances.

  1. Step 1: Set up with signs.

    Let yy be car A's distance north and xx car B's distance east, so dydt=−50\frac{dy}{dt} = -50 and dxdt=30\frac{dx}{dt} = 30. The distance DD satisfies D2=x2+y2D^2 = x^2 + y^2.

    Why

    Car A is approaching, so yy is decreasing and its rate is negative.

  2. Step 2: Differentiate.

    2DdDdt=2xdxdt+2ydydt2D\frac{dD}{dt} = 2x\frac{dx}{dt} + 2y\frac{dy}{dt}, so DdDdt=xdxdt+ydydtD\frac{dD}{dt} = x\frac{dx}{dt} + y\frac{dy}{dt}.

    Why

    Every length changes, so every term gets its own rate.

  3. Step 3: Substitute.

    D=0.82+0.62=1D = \sqrt{0.8^2 + 0.6^2} = 1, so dDdt=(0.8)(30)+(0.6)(−50)=24−30=−6\frac{dD}{dt} = (0.8)(30) + (0.6)(-50) = 24 - 30 = -6.

    Why

    DD at that instant comes from the same equation.

Check it

Car A's approach shortens the gap faster than car B's escape lengthens it, so a negative rate fits.

Answer

dDdt=−6\frac{dD}{dt} = -6 miles per hour, so the distance between the cars is decreasing at 66 miles per hour.

Your turn

Question: A person 66 feet tall walks away from a 1515-foot lamppost at 44 feet per second. How fast is the length of the person's shadow changing?

  1. Step 1:

    Let xx be the person's distance from the post and ss the shadow's length. Similar triangles give 15x+s=6s\frac{15}{x + s} = \frac{6}{s}.

  2. Step 2: Your go: simplify, differentiate and substitute.

    Cross-multiply to write ss in terms of xx, differentiate with respect to tt, then use dxdt=4\frac{dx}{dt} = 4.

Show the full solutionHide the solution

15s=6x+6s15s = 6x + 6s, so 9s=6x9s = 6x and s=23xs = \frac{2}{3}x. Differentiating gives dsdt=23dxdt=23(4)=83\frac{ds}{dt} = \frac{2}{3}\frac{dx}{dt} = \frac{2}{3}(4) = \frac{8}{3}. The rate does not depend on how far away the person is.

Answer: dsdt=83≈2.667\frac{ds}{dt} = \frac{8}{3} \approx 2.667 feet per second, so the shadow is lengthening at 83\frac{8}{3} feet per second.

Traps

Trap

Putting the instant's values into the equation before differentiating.

It seems right because the question gives those values straight away. But a changing value must stay a letter until after you differentiate, otherwise its rate vanishes.

Check yourself

For A=πr2A = \pi r^2 with r=6r = 6 at one instant, is dAdt=0\frac{dA}{dt} = 0 or 12πdrdt12\pi\frac{dr}{dt}?
Show answerHide answer

12πdrdt12\pi\frac{dr}{dt}. Differentiating first gives 2πrdrdt2\pi r\frac{dr}{dt}, then r=6r = 6. Writing A=36πA = 36\pi first would give 00.

Trap

Giving a positive rate for a quantity that is decreasing.

It seems right because the question says a speed such as "approaching at 50 miles per hour". But the distance to the intersection is shrinking, so its rate is −50-50. A wrong sign there flips the answer, as in Worked example 3, where it would give 5454 in place of −6-6.

Check yourself

Water drains from a tank at 22 liters per second. Is dVdt=2\frac{dV}{dt} = 2 or −2-2?
Show answerHide answer

−2-2 liters per second. The volume is decreasing.

What's examined

Related rates belong to Unit 4 (Derivatives in Context) of the AP® Calculus AB exam and can be tested in both the multiple-choice and the free-response sections. A free-response part may state the cone or sphere formula and ask you to "Find" a rate, "Indicate units of measure", or say whether a quantity is increasing or decreasing. Write the differentiated equation in letters before you substitute, so the method is visible. Where a graphing calculator is allowed, show the equation before the three-decimal value.

Practice questions

  1. Recall A circle's radius increases at 33 centimeters per second. How fast, in square centimeters per second, is its area increasing when the radius is 1010 centimeters?
  • A) 6π6\pi
  • B) 20π20\pi
  • C) 60π60\pi
  • D) 300π300\pi
Show answer

Answer: C, 60π60\pi square centimeters per second.

Marking points:

  • dAdt=2πrdrdt=2π(10)(3)=60π\frac{dA}{dt} = 2\pi r\frac{dr}{dt} = 2\pi(10)(3) = 60\pi.
  • A drops the rr; B drops drdt\frac{dr}{dt}; D multiplies the area πr2\pi r^2 by the rate without differentiating.
  1. Recall Both xx and yy depend on tt, and x2+y2=25x^2 + y^2 = 25. Which equation is correct?
  • A) 2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0
  • B) 2x+2y=02x + 2y = 0
  • C) 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0
  • D) 2xdxdt+2ydydt=252x\frac{dx}{dt} + 2y\frac{dy}{dt} = 25
Show answer

Answer: A.

Marking points:

  • Each term gets its own rate by the chain rule, and the constant 2525 differentiates to 00.
  • B leaves out the chain rule; C differentiates with respect to xx, not tt; D keeps the constant 2525.
  1. Apply Air is pumped into a spherical balloon at 100100 cubic centimeters per second. How fast, in centimeters per second, is the radius increasing when the radius is 55 centimeters?
  • A) 0.0640.064
  • B) 0.3180.318
  • C) 0.9550.955
  • D) 1.5921.592
Show answer

Answer: B, drdt=1π≈0.318\frac{dr}{dt} = \frac{1}{\pi} \approx 0.318 centimeters per second.

Marking points:

  • dVdt=4πr2drdt\frac{dV}{dt} = 4\pi r^2\frac{dr}{dt}, so 100=4π(25)drdt100 = 4\pi(25)\frac{dr}{dt} and drdt=1π\frac{dr}{dt} = \frac{1}{\pi}.
  • A uses r3r^3 in place of r2r^2; C differentiates 43πr3\frac{4}{3}\pi r^3 as 43πr2\frac{4}{3}\pi r^2, dropping the factor 33; D uses 4πr4\pi r.
  1. Apply A 1010-foot ladder leans against a wall, and its top slides down the wall at 11 foot per second. How fast, in feet per second, is the foot moving away from the wall when the top is 88 feet above the ground?
  • A) −43-\dfrac{4}{3}
  • B) 34\dfrac{3}{4}
  • C) 11
  • D) 43\dfrac{4}{3}
Show answer

Answer: D, dxdt=43\frac{dx}{dt} = \frac{4}{3} feet per second.

Marking points:

  • x2+y2=100x^2 + y^2 = 100 with y=8y = 8 gives x=6x = 6; dydt=−1\frac{dy}{dt} = -1.
  • 2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0 gives 6dxdt=86\frac{dx}{dt} = 8, so dxdt=43\frac{dx}{dt} = \frac{4}{3}.
  • A uses dydt=+1\frac{dy}{dt} = +1; B swaps xx and yy; C assumes both ends move at the same rate.
  1. Apply Water drains at 0.50.5 cubic meters per minute from a cone-shaped tank, vertex down, with height 88 meters and top radius 22 meters. The volume of a cone is V=13πr2hV = \frac{1}{3}\pi r^2h. Find the rate of change of the depth of the water when the depth is 44 meters.
Show answer

Answer: dhdt=−12π≈−0.159\frac{dh}{dt} = -\frac{1}{2\pi} \approx -0.159 meters per minute, so the depth is falling at about 0.1590.159 meters per minute.

Marking points:

  • Similar triangles: rh=28\frac{r}{h} = \frac{2}{8}, so r=h4r = \frac{h}{4} and V=π48h3V = \frac{\pi}{48}h^3.
  • dVdt=π16h2dhdt\frac{dV}{dt} = \frac{\pi}{16}h^2\frac{dh}{dt}, with dVdt=−0.5\frac{dV}{dt} = -0.5.
  • At h=4h = 4: −0.5=πdhdt-0.5 = \pi\frac{dh}{dt}, so dhdt=−12π\frac{dh}{dt} = -\frac{1}{2\pi}.
  1. Exam-style A runner runs along a straight path at 66 meters per second. A camera stands 2020 meters from the path, opposite point PP on the path. (a) How fast is the distance between the runner and the camera changing when the runner is 1515 meters past PP? (b) What is that rate at the instant the runner passes PP?
Show answer

Answer: (a) dDdt=3.6\frac{dD}{dt} = 3.6 meters per second, increasing. (b) dDdt=0\frac{dD}{dt} = 0 meters per second.

Marking points:

  • D2=x2+202D^2 = x^2 + 20^2, where xx is the runner's distance past PP, so DdDdt=xdxdtD\frac{dD}{dt} = x\frac{dx}{dt}.
  • (a) D=152+202=25D = \sqrt{15^2 + 20^2} = 25, so dDdt=15⋅625=3.6\frac{dD}{dt} = \frac{15 \cdot 6}{25} = 3.6.
  • (b) At PP, x=0x = 0, so dDdt=0\frac{dD}{dt} = 0.
  1. Exam-style A person 1.81.8 meters tall walks toward a 66-meter lamppost at 1.41.4 meters per second. (a) Find the rate of change of the length of the person's shadow. (b) How fast is the tip of the shadow moving toward the lamppost?
Show answer

Answer: (a) dsdt=−0.6\frac{ds}{dt} = -0.6 meters per second, so the shadow is shortening at 0.60.6 meters per second. (b) The tip moves toward the post at 22 meters per second.

Marking points:

  • Similar triangles: 6x+s=1.8s\frac{6}{x + s} = \frac{1.8}{s}, so 4.2s=1.8x4.2s = 1.8x and s=37xs = \frac{3}{7}x.
  • dxdt=−1.4\frac{dx}{dt} = -1.4, so dsdt=37(−1.4)=−0.6\frac{ds}{dt} = \frac{3}{7}(-1.4) = -0.6.
  • The tip is x+s=107xx + s = \frac{10}{7}x from the post, so its rate is 107(−1.4)=−2\frac{10}{7}(-1.4) = -2.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Link the quantities with one equation, then differentiate it with respect to tt.
  • Keep every changing value as a letter until after differentiating; only fixed values go in early.
  • A decreasing quantity has a negative rate, and the sign of the answer says which way the unknown is changing.
  • In cone and shadow problems, similar triangles remove the extra variable before you differentiate.
  • Give the answer with units of the quantity per unit of time.

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Derivatives in Context

All Related Rates notes

Part of Novark's AP Calculus AB notes