MathsCalculus

Arc Length
calculator.

Measure the true length of a curved path, not the straight line across its ends.

How it's worked out

Zoom in far enough and a smooth curve looks like a tiny slanted line. Over a small step dx the curve rises by f′(x)dxf'(x)\,dx, so the Pythagorean theorem gives that piece its length. Adding the pieces from a to b gives the formula. It needs f to be smooth, which means f′ exists and is continuous.

L\displaystyle L=∫ab1+f′(x)2dx\displaystyle {}= \int_a^b \sqrt{1 + f'(x)^2}\,dx

When both x and y move with a third value t, the parametric form adds up the speed along the curve instead.

L\displaystyle L=∫t0t1x′(t)2+y′(t)2dt\displaystyle {}= \int_{t_0}^{t_1} \sqrt{x'(t)^2 + y'(t)^2}\,dt

On a circle the integral collapses to one product, as long as the angle is in radians. In degrees, multiply by π180\frac{\pi}{180} first.

L\displaystyle L=rθ\displaystyle {}= r\theta

Why the answer comes from polygons. OpenStax warns that the formula often gives integrals you cannot do by hand. One hump of sin x is the classic case, with a length of 3.820198 that no ordinary antiderivative will give you. So the tool goes back to what arc length means: the limit of straight pieces laid along the curve. It measures a polygon of 4,096 pieces and one of 8,192, then combines them with one Richardson step, which removes the error that shrinks like one over the square of the piece count.

How it checks itself. The second route is the textbook integral. The tool differentiates your formula exactly and integrates the speed with no polygons in sight. For the parabola below, the two routes differ by less than one part in a billion. Polygons never use f′, so they also cope with the ends of a semicircle, where f′ runs off to infinity: that curve gives 3.14159, close to π.

Worked examples

Maya cuts trim for a parabolic arch

Maya's garden arch follows y=x2y = x^2 in meters, from x=0x = 0 to x=2x = 2. Here f′(x)=2xf'(x) = 2x, so the integral she needs is:

L\displaystyle L=∫021+4x2dx\displaystyle {}= \int_0^2 \sqrt{1 + 4x^2}\,dx

That gives about 4.65 m. The straight line between the ends is 4.47 m, so a cut based on the chord would leave her 17 cm short. Most of the extra length sits in the steep upper half: the first meter across needs only 1.48 m of trim, which leaves 3.17 m for the second.

Open this example in the tool

How far a valve travels as a bike wheel turns

Sam marks the valve on a wheel of radius 0.35 m and rolls it one full turn. The valve traces a curve called a cycloid, and the wheel moves forward by the distance around its rim, 2.2 m.

The valve itself travels 2.8 m. That is four times the wheel's 0.7 m diameter, and it holds for any wheel, because the speed here is 2rsin⁡t22r\sin\frac{t}{2}. The extra 0.6 m comes from going up and over rather than straight along.

Open this example in the tool

Owen edges a curved path

Owen's path follows a circle of radius 12 m through 60°. In radians that angle is 1.0472, so the edging must cover 12.57 m. The straight line across is exactly 12 m, because a 60° wedge makes an equal-sided triangle.

The same numbers give the gravel. The sector holds 75.4 m², and the sliver between chord and arc holds 13.04 m². Add a little for waste, since a real path never follows a circle to the centimeter.

Open this example in the tool

Reading your result

Length against chord. The ratio tells you how much a curve wanders. Near 1, as with the 1.033 of a short cosh x cable, the chord is a fair stand-in. A curve that ends where it starts has a chord of 0, so the ratio has no meaning and the tool shows None.

Units. The length takes the unit of x and y, so both axes must use the same one. Meters across and seconds up give a number with no physical meaning.

Steep curves gain more. These curves all run from (0, 0) to (1, 1) with the same chord. A higher power stays flat for longer and then climbs hard, so the length creeps toward 2, the length of the path that goes right and then straight up.

Curves from (0, 0) to (1, 1)
CurveLengthLength over chord
y=xy = x1.41421
y=x2y = x^{2}1.47891.046
y=x3y = x^{3}1.54791.095
y=x6y = x^{6}1.67251.183
y=x10y = x^{10}1.75441.241

The error estimate is the gap between the two polygons, divided by 3. Treat it as a guide. On a smooth curve the true error is usually far smaller, and a vertical tangent makes it larger.

Plane curves only. For a curve in space, add z′(t)2z'(t)^2 under the root in the parametric formula. This tool measures curves in a plane.

Common mistakes

  • Using degrees in rθ. A 60° arc of radius 12 is not 720. Convert first, or the answer comes out far too large.
  • Forgetting to square f′. Under the root it is 1 plus f′ squared, not 1 plus f′. For y=x2y = x^2 you need 1+4x2\sqrt{1 + 4x^2}, not 1+2x\sqrt{1 + 2x}.
  • Crossing a jump. The formula needs a continuous f′. Across a jump such as floor x, the polygon adds the height of the jump as if the curve climbed it, so the tool warns you that the number is not a true length.
  • Tracing a curve twice. A parametric length counts every pass. The unit circle gives 6.2832 for t from 0 to 2π, and 12.5664 for t from 0 to 4π, though the picture looks the same.

Questions people ask

Often nothing is wrong with your work. The square root usually has no antiderivative made of ordinary functions, so most curves need a numerical answer. Textbook problems pick the few cases that simplify, such as a perfect square under the root.

Sources