🧮
🧮 Math & statistics

Catenary Curve Calculator (cable length & shape from span and sag)

Results update as you type.

Your numbers

Understanding the catenary curve calculator — concept and principle

This calculator finds the shape and length of a cable hanging between two level supports, from the span and the sag at the middle. It gives the catenary parameter, the cable length, the extra length over the straight span and the slope at the supports. Use it for washing lines, fence wires, festoon lights, chains and as a calculus example.

A cable sagging 10 m over 100 mA cable sagging 10 m over 100 msag 10 mspan 100 my = a(cosh(x/a) − 1)Parameter a126.632 mExtra length2.619 mSlope at support22.057°Cable length102.619 m
A hanging cable forms a cosh curve; small sag needs only a little extra length.

How it is calculated

Shape (lowest point at the origin): y = a (cosh(x/a) − 1)

Sag at mid-span: h = a (cosh(L/2a) − 1), solved numerically for a

Cable length: s = 2a sinh(L/2a)

Slope at each support: arctan(sinh(L/2a))

The principle

A flexible cable of uniform weight per length can only carry tension along itself. At every point the horizontal part of the tension is the same, while the vertical part grows with the weight of cable hanging below that point. That balance gives a differential equation whose solution is the hyperbolic cosine, the catenary. The parameter a equals the horizontal tension divided by the weight per metre: a large a means a tight, shallow cable; a small a a deep sag. The length follows from the arc-length integral of the curve.

Worked example

Default inputs: span 100 m, sag 10 m.

  1. Solve 10 = a (cosh(50/a) − 1): a = 126.632 m.
  2. Cable length = 2 × 126.632 × sinh(50 ÷ 126.632) = 102.619 m.
  3. Extra length over the span = 102.619 − 100 = 2.619 m.
  4. Slope at each support = arctan(sinh(0.39484)) = 22.057°.
  5. Sag-to-span ratio = 10 ÷ 100 = 0.1.
How Cable length (m) changes with Span between the two supports (m)How Cable length changes with Span betwe…050100150200250255075100125150200Example: 102.619Span between the two supports (m)
Each point is the calculator re-run with only “Span between the two supports (m)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Span between the two supports (m)Cable length (m)
2533.6047
5054.9859
7578.4449
100102.619
125127.108
150151.763
200201.327

How to read the result

A small amount of extra cable produces a lot of sag: here 2.6 % extra length gives a 10 m dip. The reverse is also true: pulling a cable nearly straight takes very large tension, because a grows and so does the horizontal force. The slope at the supports shows the direction of the pull on each anchor.

Common mistakes

Keep in mind: The model assumes level supports, a uniform cable and no stretch. Power lines, bridges and lifting gear need design by a qualified engineer to the applicable codes.

Frequently asked questions

What is a catenary?

The curve formed by a uniform flexible chain or cable hanging under its own weight: y = a cosh(x/a).

Is a hanging chain a parabola?

No, but for small sag the two curves are very close.

How long a rope do I need for a given sag?

Enter the span and sag; the cable length line gives it.

Sources: OpenStax, Calculus Volume 1 (2016), §6.9 Calculus of the Hyperbolic Functions

Checked 9 Nov 2026. OpenStax, Calculus Volume 1 (2016), §6.9 Calculus of the Hyperbolic Functions — “Applications of Hyperbolic Functions” (a hanging cable of uniform density forms a catenary y = a·cosh(x/a); its length over −c ≤ x ≤ c is 2a·sinh(c/a), worked example 10·cosh(x/10) on −15 ≤ x ≤ 15 → 20·sinh(3/2) ≈ 42.586 ft), as adapted in Lumen Learning Calculus I.

🧮 All math & statistics tools →🌍 Calculators by country →