What this calculator does
A catenary is the curve y = a·cosh(x/a) taken by a chain, cable or rope of uniform weight that hangs freely between two supports. This calculator covers supports at the same height: s is the span between them, h the sag (how far the supports are above the lowest point), L the length of the chain and a the catenary parameter, the ratio of the horizontal tension to the weight per unit length.
Derivation of the formulas
Sag and arc length:
$$ h = a\left(\cosh\frac{s}{2a} - 1\right),\quad L = 2a\sinh\frac{s}{2a} $$
Slope angle at a support:
$$ \tan\varphi = \sinh\frac{s}{2a} $$
Identity:
$$ (a + h)^2 - \left(\frac{L}{2}\right)^2 = a^2 $$
Shallow sag (parabola):
$$ h \approx \frac{s^2}{8a},\quad L \approx s + \frac{8h^2}{3s} $$
Put the lowest point of the chain at x = 0. A piece of chain from the lowest point to x is held by the horizontal tension H at the bottom and the tension along the chain at x; its weight w·σ (σ = arc length from the bottom) must balance the vertical part, so the slope is y′ = σ/a with a = H/w. Differentiating, y″ = σ′/a = √(1 + y′²)/a, whose solution with y′(0) = 0 is y = a·cosh(x/a), and σ = a·sinh(x/a). With the supports at x = ±s/2, the sag is h = a·cosh(s/2a) − a and the length of the chain is L = 2a·sinh(s/2a); the slope at a support is sinh(s/2a). Because cosh² − sinh² = 1, the height of the supports above the directrix (the line a below the lowest point), a + h, and the half-length L/2 satisfy (a + h)² − (L/2)² = a². When the span and the sag (or the span and the length) are known, a has no closed form: with t = s/2a the calculator solves sinh²(t/2)/t = h/s (or sinh(t)/t − 1 = (L − s)/s) for t by Newton's method kept inside a bisection bracket, both sides of which increase with t, so there is exactly one solution. For a shallow chain the catenary is close to the parabola h ≈ s²/(8a).
Solving from what you know
Choose what you know: Span and sag; Span and arc length (length of the chain); Catenary parameter a and span. The calculator first finds the sizes that define the curve and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000; anything outside is refused with a sentence that names the range.
Worked example
With the defaults s = 100 and h = 10: the solution is a ≈ 126.632436, the chain is L ≈ 102.618687 long, and it leaves each support at about 22.056967° to the horizontal; the parabola estimate s + 8h²/(3s) ≈ 102.666667 is close but a little long.
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Frequently asked questions
Is a hanging chain a parabola?
No. A parabola is the shape of a cable that carries a load spread evenly along the horizontal, as in a suspension bridge deck; a chain that carries only its own weight forms a catenary. For a shallow sag the two are almost the same.
What does the catenary parameter a mean?
a is the radius of curvature at the lowest point and equals the horizontal tension divided by the weight per unit length. Multiply a by the weight per metre to get the horizontal pull on each support.
Can the sag be 0?
No: a chain of any weight hanging between two supports always sags. A sag of 0 would need an infinite tension, so the calculator asks for a sag above 0; for a very small sag it says that the chain is almost straight.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
J. Dennis Lawrence, A Catalog of Special Plane Curves, Dover Publications, 1972
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018