For one straight segment starting and finishing at rest, distance determines whether the speed cap can be reached. Constant symmetric ramps produce a triangular speed–time graph for a short move or a trapezoid with a plateau. This calculates ideal kinematics, not a printer simulation.

The model explains why doubling a requested speed can leave a small move’s time unchanged. The associated visualizer lets you compare requested speed with the peak reached.

Define the model before the equations

Choose positive distance L in mm, cap v in mm/s and acceleration a in mm/s². The path is straight and keeps one direction, with zero initial and final speed. Braking has the same magnitude as acceleration, and acceleration changes instantly between phases in this model.

OpenStax’s constant-acceleration equations treat each phase separately. Klipper also describes moves with nonzero entry and exit speeds. The rest-to-rest case here is deliberately narrower, making the derivation readable without representing every path.

Symbol Meaning Unit
L Segment distance mm
v Requested speed, the model’s cap mm/s
a Acceleration and braking magnitude mm/s²
vp Peak speed reached by the model mm/s
ta Duration of one ramp s
tc Plateau duration s
T Total segment duration s
L* Threshold distance to reach v and then brake mm

Derive the threshold distance

The time needed to reach v from rest at constant acceleration is v / a. Mean speed in that ramp is v / 2, so its distance is v² / (2a). Symmetric braking needs the same distance. Adding them gives the threshold:

L* = v² / a

L* includes both ramps. Confusing it with acceleration alone gives an error factor of 2. At L = L*, speed reaches v for an instant, with no distance left for a plateau.

Short case: triangular profile

When L is below L*, the peak remains below v. Two symmetric ramps occupy the entire segment, giving:

vp = √(a L) ; ta = √(L / a) ; tc = 0 ; T = 2 √(L / a)

Average speed is then vp / 2. Raising the requested cap above that peak no longer changes this segment’s duration. That does not generalise to the whole part: other moves may be longer or start at a nonzero speed.

Long case: trapezoidal profile

When L exceeds L*, acceleration and braking together occupy L*. The rest, L − L*, is covered at v:

vp = v ; ta = v / a ; tc = (L − L*) / v ; T = 2 v / a + tc = L / v + v / a

L / v would be the time at constant v throughout. The added v / a accounts for the ramps under these assumptions. Do not add it automatically to each real G-code command, since junctions can retain speed.

Check two examples without physical measurements

Calculated examples without physical measurements: let v = 200 mm/s and a = 1 000 mm/s². Threshold L* is 40 mm.

L Profile vp ta tc T
10 mm Triangle 100 mm/s 0.1 s 0 s 0.2 s
40 mm Boundary 200 mm/s 0.2 s 0 s 0.4 s
100 mm Trapezoid 200 mm/s 0.2 s 0.3 s 0.7 s

Areas check the distance. For 10 mm, the triangle gives 0.2 × 100 / 2 = 10 mm. For 100 mm, each triangle gives 0.2 × 200 / 2 = 20 mm and the rectangle 0.3 × 200 = 60 mm. Their sum is 20 + 60 + 20 = 100 mm. Units agree: s × mm/s gives mm.

The last case averages 100 / 0.7, about 142.857 mm/s, while its cap is 200 mm/s. The practical speed guide puts those figures in slicer context.

Read the chart using the right units

Read time in s horizontally and speed in mm/s vertically. Since motion keeps one direction, area under the curve is distance. To derive acceleration from slope you need both axis scales; the on-screen angle alone is insufficient.

The visualizer scales its axes separately. Requested speed stays at the vertical cap, so a lower peak shows that it was not reached. Do not compare inclinations across resized charts; compare the value a.

What this model excludes

Junctions and look-ahead alter speeds across real move sequences. Klipper documents look-ahead and a minimum cruise ratio for short moves. This calculation includes neither those rules, smoothing nor particular axis and extruder limits.

Flow, cooling, heat-up, retraction and pauses remain outside the model, as does mechanical strength. It predicts no surface finish and confirms no machine ability to accept the inputs. Its numeric bounds support calculation, not recommendations.

Artificial stops at every end can overestimate a continuous path’s duration. Missing constraints or preparation can instead make real work longer. This is therefore no general time bound. For an actual comparison, use the duration troubleshooting guide with explicit timing events.

Sources consulted