Brachistochrone Time Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What this brachistochrone time calculator does

This calculator estimates how long a frictionless bead would take to slide under gravity along the brachistochrone curve between two points at different heights. For a given horizontal separation, vertical drop, and gravitational acceleration, it returns the shortest possible travel time for any smooth track that starts and ends at those points.

The brachistochrone is a classic problem from the history of physics. Even though a straight ramp is the shortest distance between two points, it is not the fastest path. The optimal track dips steeply at first so the bead gains speed quickly, then flattens out near the end. Mathematically, that optimal shape is a segment of a cycloid, the curve traced by a point on the rim of a rolling wheel.

Inputs, outputs, and units

To use the calculator, supply three quantities:

You can choose any consistent length and time units. If you enter x and y in metres and g in m/s², the computed brachistochrone travel time will be in seconds. If you use feet and ft/s², the time is still in seconds because the time unit is determined by the acceleration unit.

The brachistochrone curve and key formulas

The brachistochrone between two fixed points is a segment of a cycloid. A convenient parametrization for the cycloid is

x = a (\theta - \sin\theta),
y = a (1 - \cos\theta),

where:

For a bead sliding without friction under constant gravity g, the total descent time along this cycloidal arc can be written in the compact form

T = \theta_f a 2 g

In many physics texts this is written symbolically as T = \thetaf \sqrt{a / (2g)}. The important point for users is that once the calculator has determined the cycloid parameters a and \thetaf, it can immediately compute the minimal travel time.

To match your chosen endpoints, the parameters must also satisfy

x = a (\thetaf - \sin\thetaf)
y = a (1 - \cos\thetaf).

Eliminating a leads to a single equation for the unknown angle \thetaf:

\dfrac{y}{1 - \cos\thetaf} = \dfrac{x}{\thetaf - \sin\thetaf}.

This is a transcendental equation (it mixes trigonometric and algebraic terms) and does not have a simple closed-form solution, so we solve it numerically inside the calculator.

How the calculator finds the time

The computation proceeds in three main steps:

  1. Solve for θf. The tool uses an iterative numerical method to find the value of \thetaf that makes the ratio y / (1 - \cos\thetaf) match x / (\thetaf - \sin\thetaf) to high accuracy.
  2. Recover the scale parameter a. Once \thetaf is known, the scale a follows directly from the vertical relation a = y / (1 - \cos\thetaf).
  3. Compute the descent time. With a, \thetaf, and your chosen gravity g, the calculator evaluates the time formula and returns the minimal travel time along the brachistochrone between the two points.

Behind the scenes, a robust numerical solver refines an initial guess for \thetaf by repeatedly improving the estimate until changes are smaller than a specified tolerance. For typical geometries (end point lower than the start, and with reasonable aspect ratios) this converges in only a few iterations.

Worked example

Suppose you have two points separated by a horizontal distance of 5 m and a vertical drop of 2 m, under standard Earth gravity.

You would enter 5 for horizontal distance, 2 for vertical drop, and leave 9.81 for gravity. The calculator solves for the cycloid parameters and then reports the brachistochrone travel time. For comparison, it is typically a noticeable fraction faster than a straight-line ramp connecting the same two points, even though the path length is slightly longer.

You can experiment by changing the horizontal distance while keeping the same drop. As the horizontal separation increases, the optimal curve becomes longer and the travel time increases, but it still beats simpler paths with the same endpoints.

Comparison with simpler paths

To appreciate why the brachistochrone is special, it helps to contrast it with a straight ramp or a "drop then slide" path between the same two points. The table below summarizes the qualitative differences.

Path type Shape description Travel distance Typical travel time Key feature
Brachistochrone (cycloid) Steep at first, then gradually flattening toward the end Longest of the three options Shortest time Gains speed quickly by dropping more rapidly at the start
Straight-line ramp Single straight segment between start and end Shortest distance Intermediate time Balances distance and acceleration, but does not maximize early speed
Vertical drop then horizontal slide Drop straight down, then move horizontally Moderate distance Longest time Spends much of the path at lower speed along the horizontal section

The brachistochrone wins by letting gravity do extra work early on. Once the bead has picked up significant speed, it can cover the remaining distance quickly even along a relatively gentle slope.

Assumptions, limitations, and valid inputs

This calculator is based on an idealized physics model. When interpreting results, keep the following assumptions in mind:

In real experiments or engineering applications, friction, finite object size, and construction constraints will increase the actual travel time above the ideal value predicted here. Nonetheless, the brachistochrone calculation provides a useful theoretical benchmark for how fast a purely gravity-driven system could operate under perfect conditions.

Using the results

The computed time tells you how quickly an ideal bead would traverse the brachistochrone track between your chosen points. You can use this to:

If you design actual tracks or simulations, treat the calculator’s output as a lower bound. Any additional effects like rolling resistance, wheel bearings, or non-uniform gravity will lengthen the true travel time relative to the brachistochrone ideal.

Enter x and y to calculate.

Curve Racer Mini-Game

Race beads down different curves and discover which path wins! The straight line looks fast, but physics has a surprise—the cycloid curve (brachistochrone) beats them all by diving steeply at the start to build speed.

Click to Play

Which curve is fastest? Choose your path, then race against the legendary cycloid!

Tap the canvas or use arrow keys ←→ to switch curves mid-flight.

Embed this calculator

Copy and paste the HTML below to add the Brachistochrone Time Calculator - Fastest Descent to your website.