kapy academy

Acceleration, resonance and input shaping

17 min readUpdated Nov 2026

A small, detailed part takes far longer than the profile's speed suggests, and if you raise that speed, the outer wall starts echoing every corner in ripples (ringing). Both come from the same place: you reach speed by accelerating, and accelerating shakes the machine. Long straight lines are limited by how much plastic the hotend can melt (Volumetric flow sets the speed); everything with corners is limited by acceleration, and acceleration is held back by vibration. Input shaping measures that vibration and cancels it.

Acceleration matters more than top speed

To reach a speed v at an acceleration a, the head needs a distance of v² / 2a, and the same again to stop. At 5,000 mm/s², reaching 300 mm/s takes 9 mm and braking takes another 9. A stretch shorter than 18 mm between two sharp corners never reaches the set speed: a 10 mm one tops out at about 224 mm/s before it has to brake. What a slicer does walks through the full time calculation.

speedtime300 mm/sset speedacceleration ramp9 mm · 5 000 mm/s²peak≈224 mm/slong stretch40 mmshort stretch10 mm
Acceleration decides how long a detailed part takes: at 5,000 mm/s², the long stretch reaches 300 mm/s and holds it; the 10 mm stretch between two corners never gets past about 224 mm/s.

The same 300 mm/s on each class of machine:

Distance to reach 300 mm/s (v² / 2a)
Acceleration Typical machine Ramp to 300 mm/s
1,000 mm/s² Legacy bedslinger 45 mm
5,000 mm/s² Modern bedslinger 9 mm
10,000 mm/s² Enclosed CoreXY 4.5 mm
20,000 mm/s² Enclosed CoreXY, flat out 2.25 mm

On the legacy machine the ramp is longer than most of the walls of a small part: the profile's 300 mm/s is decoration. On a detailed part the nozzle spends nearly all its time speeding up or slowing down, so doubling the acceleration saves far more time than doubling the top speed.

Accelerating takes force: F = m·a. The force that stretches the belts, flexes the frame and shoves the part grows with the acceleration and with the moving mass. A kilogram at 5,000 mm/s² (5 m/s²) demands 5 N from the belt; the same kilogram at 20,000, 20 N. The heaviest axis takes the worst of it, and on a bedslinger that is Y: the bed with your part on top (Bedslingers, CoreXY and other layouts).

Corners add a jolt of their own. The firmware does not brake to zero at each one: it lets the head take the corner at a low speed, the cornering speed. In Klipper that is square_corner_velocity, 5 mm/s by default; in Marlin it is junction deviation, 0.013 mm by default, or classic jerk, around 10 mm/s. That change of speed is almost instantaneous, so it shakes the machine too. Raising it does not clean up the corners: with input shaping, Klipper advises against going above 5 mm/s, because it increases smoothing. Firmware: Marlin, Klipper and closed systems covers where to set it.

Where ringing comes from

Think of the head (or the bed) as a mass m attached to a spring of stiffness k: the belts and the frame. That system has a natural frequency:

f = (1/2π)·√(k/m)

Stiffer means a higher frequency; heavier means a lower one. It is the relationship from Bedslingers, CoreXY and other layouts, expressed in hertz.

Every change in acceleration (the start and end of each ramp, every corner) is a kick to that mass, which then keeps oscillating at its natural frequency. A printer's motion system is lightly damped: Klipper assumes a damping ratio of 0.1 (real values run from 0.075 to 0.15). That is why the oscillation takes several cycles to die away. The nozzle traces it on the wall: echoes after the corner that fade in the direction of travel. Wall marks: ringing, VFA and Z-banding shows how to recognize and measure them.

Acceleration sets the amplitude of the oscillation. At an acceleration a, the mass deflects by roughly a / ω², where ω = 2πf. At 50 Hz (ω ≈ 314 rad/s) and 5,000 mm/s² that is about 0.05 mm; at 25 Hz, about 0.2 mm. At the same acceleration, half the frequency gives four times the displacement. These are orders of magnitude, but they are enough to explain two rules: the lower the frequency, the more ringing; and you fight ringing by lowering acceleration. The cruise speed v only changes the spacing d between echoes, d = v / f.

Typical values: in the examples in Klipper's documentation, the recommended shaper lands at 34.6 Hz (MZV) for Y and 45.2 Hz (2HUMP_EI) for X. Below about 20–25 Hz, Klipper advises you to stop tuning the shaper and stiffen or lighten the axis instead. There is no reliable per-model table: manufacturers do not publish their values. On a bedslinger the low axis is usually Y, because it carries the bed and your part, and its frequency drops as the part grows.

Before input shaping, on legacy bedslingers running Marlin, the only remedy was to lower the acceleration (500–1,250 mm/s²) and the jerk. It worked, because amplitude depends on acceleration; but with ramps that long, printing walls faster than 40–80 mm/s gained nothing.

How input shaping cancels it

The simplest shaper, ZV (zero vibration), replaces each kick with two smaller ones: the second arrives half a period after the first (0.5 / f). The vibration the second one sets off is in antiphase with the first, and the two cancel. Because there is damping, the two impulses are not exact halves: the firmware sizes each one so that the cancellation is complete.

The same printed block and print head twice, tracing the outer wall. Left, without input shaping: turning the corner kicks the head, which keeps oscillating at 40 Hz for several cycles; the wall copies it as echoes, one every 2.5 mm, and the plot in front shows the head's deviation along the wall. Right, with ZV: the same kick split into two impulses half a period apart (12.5 ms); after the second one the deviation is zero and the wall comes out smooth
A printed block and the print head tracing its outer wall, twice. Left, without input shaping: after the corner the head keeps oscillating at 40 Hz and leaves echoes on the wall, one every 2.5 mm at 100 mm/s, dying out over a few cycles; in front, its deviation along the wall. Right, with ZV: the kick is split into two impulses half a period apart (12.5 ms) and the second vibration arrives in antiphase: the deviation cancels and the wall comes out smooth. The price is the smoothing: the corner takes those 12.5 ms longer. Deviation drawn about 15 times larger.

The firmware applies that train of impulses to every change in acceleration of every move, in real time. It is a firmware compensation, like the bed mesh or pressure advance (Firmware: Marlin, Klipper and closed systems). The slicer does not compute the shaper; at most, the start G-code sets its parameters with a command (M593 on Prusa and Marlin). Each axis has its own frequency: even on a CoreXY, the shaper is tuned separately for X and for Y.

The price is smoothing. Each acceleration is spread over the duration of the shaper: 0.5 / f for ZV, 0.75 / f for MZV, 1 / f for EI, 1.5 / f for 2HUMP_EI and 2 / f for 3HUMP_EI. An MZV at 40 Hz lasts about 19 ms. During that time the head is already changing direction, so a sharp corner comes out slightly rounded. Smoothing grows with acceleration and with the shaper's duration, and falls as the frequency rises. Hence what Bedslingers, CoreXY and other layouts hinted at: input shaping rounds corners a little and caps acceleration. A heavy axis has a low frequency, needs a longer shaper and rounds more. That is why the calibration also gives you a maximum acceleration: above it, the rounding shows. In Klipper's example, the calibration recommends staying below 3,500 mm/s² with an MZV at 34.6 Hz; with a ZV at 34.4 Hz it allows 4,500, but leaves 4 % residual vibration.

Choosing a shaper: tolerance against smoothing

The real frequency is not fixed. It shifts with belt tension, with a heavier head and, on the Y axis of a bedslinger, with the part growing on top. A ZV tuned to 40 Hz stops canceling the vibration if the machine moves to 42 Hz (+5 %); an MZV holds up to about 46 Hz. Longer shapers tolerate more error and pay for it with more smoothing.

Input shapers: duration, tolerance and smoothing (Klipper)
Shaper Duration Frequency error tolerated (vibration ≤ 10 %) Smoothing
ZV 0.5 / f ±5 % lowest
MZV 0.75 / f −10 % / +15 % low
EI 1 / f ±25 % medium
2HUMP_EI 1.5 / f −45 % / +50 % high
3HUMP_EI 2 / f −55 % / +65 % highest

The 10 % threshold is the common yardstick for comparing all five. EI and the two- and three-hump shapers (2HUMP_EI, 3HUMP_EI) are designed to leave at most 5 % vibration, and by that yardstick their margin is a little narrower.

tolerance (10 %)ZVMZVEI−40 %−20 %f+20 %+40 %+60 %50 %100 %0real frequency / tuned frequencyremaining vibrationduration (in 1/f)ZV½ / fMZV¾ / fEI1 / fsmoothing
Vibration left over when the real frequency drifts from the tuned one. ZV only cancels vibration very close to its frequency; EI keeps it under 10 % across a much wider band, at the cost of lasting twice as long as ZV and rounding more.

The rule that falls out of the table: MZV is the usual choice when the frequency is well known and stable; EI, when the axis drifts, like the Y axis of a bedslinger with tall or heavy parts. The two- and three-hump shapers cover a wide band: they are for an axis that vibrates at several frequencies, and they do not lock onto the peak frequency the way ZV or MZV do. With a high peak, above about 50–60 Hz, their duration is still short and Klipper suggests trying them. In its example, the calibration picks 2HUMP_EI at 45.2 Hz for X because it leaves 0.1 % vibration. Below about 25 Hz, even MZV can smooth too much and ZV is worth a try. Automatic calibrations choose for you; the table is there to help you read the result and, in Klipper, to pick another shaper from the calibration's list if you would rather have less smoothing.

Klipper has every shaper. Marlin has had ZV since 2.1.2 (M593, with frequency and damping), but it is disabled by default: you have to build the firmware with INPUT_SHAPING_X and INPUT_SHAPING_Y, and the stock firmware of many legacy bedslingers does not include it; the other types only come with FT_MOTION, still experimental. RepRapFirmware has MZV and others, but one frequency for both axes. Prusa's firmware sets type and frequency per axis with M593, and the machine arrives tuned from the factory. Bambu and Creality's K series pick the shaper themselves; the normal interface never asks you to choose.

Measuring the resonances

With an accelerometer, which is the norm. The firmware shakes each axis through a sweep of frequencies, and the accelerometer, fixed to the head (and, for the Y axis of a bedslinger, to the bed), records the response. The peak gives the frequency. The calibration simulates each shaper against that response, reports the frequency, remaining vibration, smoothing and recommended maximum acceleration, and proposes one. The accelerometer has to be rigidly mounted on the moving part: a loose bracket measures its own wobble.

What each family does as of late 2026:

  • Bambu Lab includes vibration compensation in its automatic calibration, which you start from the screen, Bambu Studio or Bambu Handy. Some models check the resonance at start-up and, if it has changed since the last calibration, warn you and suggest checking the belt tension and cleaning the rail.
  • Creality's K series measures resonances on its own, as part of its auto-calibration.
  • Prusa ships with values set at the factory, per axis. The XL carries an accelerometer and arrives calibrated; on the MK4S or the CORE One, if you change the head or add weight to it, you recalibrate with the optional accelerometer kit.
  • Klipper: you mount a sensor (the ADXL345 is the classic; LIS2DW, LIS3DH and the MPU-9250 family are also supported) on the head, as close to the nozzle as you can, and turn the fans off while measuring, because they add noise to the plot. On a bedslinger, Y is measured with the sensor on the bed (SHAPER_CALIBRATE AXIS=Y). SAVE_CONFIG stores the shaper but leaves max_accel alone: you copy the recommended maximum acceleration into the config yourself.

Which sensors a current machine carries and which routines it runs is covered in A modern FDM printer, part by part.

Without an accelerometer (Marlin, older machines), the frequency comes from a printed part. Klipper's ringing tower prints the outer wall at about 80–100 mm/s, with one or two walls and the acceleration rising from 1,500 to 7,000 mm/s² in 5 mm bands. Before printing it, turn off pressure advance, leave square_corner_velocity at 5, run SET_VELOCITY_LIMIT MINIMUM_CRUISE_RATIO=0 and, if a shaper is already active, disable it (SET_INPUT_SHAPER SHAPER_FREQ_X=0 SHAPER_FREQ_Y=0); otherwise the tower does not show the real resonance. Count N ripples over a distance D: f = v·N / D. In Klipper's example, 100 × 6 / 12.14 ≈ 49.4 Hz. It is the same calculation as in Wall marks: ringing, VFA and Z-banding (speed divided by echo spacing), done over several ripples for precision. OrcaSlicer's calibration menu includes input shaping frequency and damping tests for Klipper, Marlin and RepRapFirmware: you find the band with the least ringing and the slicer gives you the value.

Print these tests in glossy, dark, opaque filament and look at them under raking light: a matt, pale filament hides the echoes.

When to repeat the calibration. After tensioning or replacing a belt or a pulley, changing the head or adding weight to it, tightening or loosening the frame, moving the printer to another table, or when ringing appears on a machine that did not have it. A slacker belt is a softer spring (lower k) and lowers the frequency; that is why Bambu asks you to recalibrate after tensioning one. It is not a calendar job: Orca's guide suggests once a year, but the trigger is a mechanical change. With a new result, retune pressure advance as well, as Klipper recommends: the shaper changes how the head takes corners (Pressure advance and clean corners). In the sequence in What to calibrate, and in what order, motion comes before flow and pressure advance.

Typical failure: running the calibration with a slack belt or on a wobbly table. The shaper tunes itself faithfully to the faulty machine: it picks a low frequency and a long shaper, and you are left with rounder corners and a lower maximum acceleration. Fix the mechanics first (Bed and motion upkeep) and measure afterwards.

What input shaping does not fix

  • VFA (vertical fine artifacts). The fine vertical stripes that cover the wall on constant-speed stretches come from motor and belt ripple, not from a kick at the corner. A filter built for corners does not correct them (Wall marks: ringing, VFA and Z-banding; the mechanics are in Rails, belts and motors).
  • A bulge and a gap at every corner. A single mark with no period: it comes from the pressure in the nozzle (Pressure advance and clean corners).
  • A tall, slender part on a bedslinger. The part is its own spring, with a frequency nobody has measured that drops as it grows. The machine's shaper does not cover it. Turn it so its long side is parallel to Y, the bed's axis, so the acceleration pushes it where it is stiff, and lower the outer wall acceleration for that print (Bedslingers, CoreXY and other layouts).
  • Layer shifts. If the acceleration asks for more torque than the motors can give, they skip steps, and the shaper adds no torque (Layer shifts and spaghetti).
  • Backlash. A loose eccentric nut or a worn wheel leaves play in the axis: oval circles and irregular ringing that matches no frequency (Rails, belts and motors).

What you set in the slicer

The machine sets the shaper. You set the acceleration for each line type in the slicer, without going over the firmware's maximum. For reference, the Bambu X1C's 0.20 Standard profile uses 10,000 mm/s² by default and 5,000 on the outer wall; the Prusa MK4S's 0.20 SPEED, 4,000 by default. The first layer runs at about 500 mm/s². The full table is in Speed and cooling.

When ringing appears, lower the outer wall's acceleration, not its speed. Amplitude depends on acceleration; speed only changes the spacing between echoes. As a first test, halve it. Leave the inner walls and infill fast: nobody sees them.

The firmware's maximum clips whatever the slicer asks for. A profile above that maximum does not print any faster; it only spoils the time estimate (Firmware: Marlin, Klipper and closed systems).

When it fails

Ringing and acceleration: symptom, cause and fix
Symptom Cause Fix
Echoes after corners on a machine that was calibrated The mechanics have changed Check belts, frame and table; repeat the resonance test
Echoes only on the Y axis of a bedslinger, worse with height The part's mass or its own resonance Reorient the part, lower the outer wall acceleration; if you pick the shaper by hand, EI
Slightly rounded corners at high acceleration Shaper smoothing Drop to the recommended maximum acceleration, or accept it
Echoes on a legacy bedslinger running Marlin No input shaping Outer wall at 500–1,250 mm/s²; or Marlin 2.1.2+ built with input shaping, ZV and a test print; or Klipper
Calibration gives a much lower frequency than before Slack belt or dirty rail Tension the belt, clean the rail and measure again
You cannot make out the ripples on the ringing tower Matt or pale filament, pressure advance or shaper switched on Glossy dark filament, pressure advance and shaper off

See also

Design it in KapyCAD

Design parts sized for your printer and your nozzle.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?