Input Shaping: How Firmware Cancels a Printer's Vibration
Input shaping is a firmware technique that alters a 3D printer's movement commands so that the vibration started by a sudden change of direction is cancelled before it reaches the print. It reduces the surface ripples known as ringing or ghosting, which lets a machine use higher acceleration without visible echoes. This explainer covers where the vibration comes from, how a shaper cancels it, how it is calibrated in Klipper, Marlin and makers' firmware, and what it leaves alone.

Ringing: The Echo After a Sharp Corner
A printer's frame, belts and toolhead are not perfectly rigid. When the toolhead changes direction quickly, the moving mass keeps going for an instant and the structure springs back, then overshoots, then settles. For a short time after the corner, the nozzle wobbles around its intended path.
On the part, that wobble appears as a faint repeating ripple running away from each sharp edge, hole or embossed letter. Klipper's documentation lists the names: ringing, echoing, ghosting or rippling. Each machine vibrates at its own characteristic frequencies, set by its stiffness and moving mass, usually different for X and Y.
The traditional cure is to slow down: lower acceleration means gentler direction changes and smaller ripples. It is still the first advice most searches for a ringing 3D print turn up. Vibration compensation offers another route, keeping the acceleration and removing the wobble.
How a Shaper Cancels a Vibration
The idea predates 3D printing and comes from machine control. If a single push starts a structure vibrating at a known frequency, a second push delivered half a vibration period later starts a second vibration exactly out of step with the first. The two cancel.
That is the short answer to "what is input shaping". Instead of sending one abrupt change in motion, the firmware splits it into two or more smaller changes timed against the printer's resonance. The toolhead still reaches the same place; it gets there a few milliseconds later, having excited far less vibration.
The simplest shaper, called ZV, uses two pulses. Others, with names such as MZV, ZVD and EI, use more pulses spread over a longer window. Klipper's documentation explains the trade: shapers differ in how much error in the measured frequency they tolerate and in how much smoothing they add to the part. The method works only as well as the frequency it is given, so calibration matters.
Measuring Resonance With an Accelerometer or a Test Print
There are two ways to find a printer's resonance frequencies.
The first is a printed test. A tower or a single-layer pattern is printed with sharp direction changes, and in Klipper's procedure the spacing of the ripples, together with the print speed, gives the frequency. Marlin's documentation uses a ringing tower that steps through a range of frequencies instead. It needs no extra hardware but takes time and a careful eye.
The second uses an accelerometer, a small motion-sensing chip. Klipper's documentation describes mounting one, such as an ADXL345, on the toolhead and, for a bed slinger, on the bed. The printer then shakes each axis through a sweep of frequencies while the chip records the response, and a script suggests a shaper type and frequency for each axis. Marlin's documentation notes that Marlin has no accelerometer input of its own and points to external tools for the measurement.
Many current printers carry out an accelerometer routine themselves as part of setup or before a print, with the sensor built in. How often it runs is the maker's decision.
Shaping in Klipper, Marlin and Makers' Firmware
The feature reached desktop printers through open-source firmware and is now common on new machines.
- Klipper calls it resonance compensation. It supports several shaper types per axis, accelerometer measurement and automatic selection, and its documentation says that for most printers either the MZV or the EI shaper is the usual choice.
- Marlin offers an integrated ZV shaper, configured with a frequency and damping value per axis through the M593 command, and a separate Fixed-Time Motion system that adds further shaper types.
- RepRapFirmware, used on Duet boards, documents its own implementation.
- Makers' firmware. Printer makers ship their own versions, often built on or modeled after the open-source ones, under names such as vibration compensation or resonance compensation.
The practical difference for an owner is how much is automatic. A machine with a built-in sensor tunes itself; a self-built or older machine may need the test prints or an added accelerometer. A listing that claims the feature seldom says which of these applies, so the maker's manual is the place to check.
Pressure Advance: The Extruder's Counterpart
Shaping deals with the motion of the toolhead. A second feature deals with the flow of plastic, and the two are usually tuned together on fast printers.
Molten plastic in the nozzle is under pressure, and that pressure does not change instantly. When the toolhead slows for a corner, the extruder slows too, but the built-up pressure keeps pushing plastic out, leaving a bulge. When it speeds up again, the flow lags and the line starts thin. Pressure advance, Klipper's name for the correction, pushes extra filament during acceleration and pulls it back during deceleration to keep the flow in step with the motion. Marlin's equivalent is Linear Advance.
Klipper's documentation states that it reduces ooze during travel moves and blobbing at corners. The right value depends on the filament, the nozzle and the length of the filament path; see direct drive vs Bowden. Bulging corners are a flow problem and rippled walls are a vibration problem, and each needs its own fix.
The Cost of Shaping: Smoothed Corners and Detail
Spreading a sharp change in motion over a few milliseconds has a side effect: the path itself is slightly rounded. Sharp corners become a little softer and very fine details can be blurred. Klipper's documentation calls this smoothing and treats it as the main thing to weigh when picking a shaper.
The effect grows in two cases. Shapers that tolerate more frequency error use more pulses over a longer window, so they smooth more. And a low resonance frequency means a long vibration period, so the pulses are further apart. A heavy toolhead on a flexible frame is harder to shape cleanly than a light one on a stiff frame.
For that reason Klipper's calibration output includes a suggested maximum acceleration for each shaper, above which smoothing becomes noticeable, and its troubleshooting notes cover parts that look over-smoothed. Shaping extends how far acceleration can be pushed; it does not remove the limit.
What Vibration Compensation Leaves Untouched
The feature addresses one thing: resonance excited by changes in motion. Other causes of poor surfaces or slow prints are outside its reach.
- Mechanical faults. Loose belts, worn bearings, a wobbly spool holder or a printer on an unsteady table. Klipper's documentation notes that frequencies shift when belt tension changes and suggests re-measuring.
- Fine vertical banding tied to motors, pulleys or belt teeth, which has a different source than ringing.
- Hotend flow. A hotend melts only so much plastic per second. Past that, lines come out thin or the extruder skips, whatever the motion system allows.
- Cooling. Layers laid down faster have less time to solidify, so overhangs and small features can sag.
- Layer bonding. Filament printed at the edge of its flow range may bond less well between layers.
This is why a stated top speed in mm/s says little about a typical print, and why filament sold as high-speed is formulated to flow more easily. A moving bed also changes mass as the print grows, so a bed slinger's Y-axis tuning is a compromise; see what CoreXY is.
Fast Printers and High-Speed Filament in Today's Prices
Listings rarely make this feature searchable, so we do not group printers by it. The nearest figures from daily Amazon data are for the machine types that usually have it:
- All filament printers: median $341.56 (priced listings today: 306).
- CoreXY machines: $463.90.
- Enclosed machines: $649.00.
Filament labeled for high-speed printing carries its own price. The median for high-speed PLA today: $14.57 per kg, against $14.99 per kg for standard PLA. For high-speed PETG: $11.13 per kg.
Compare machines on the FDM 3D printer price list and spools on the PLA price list and PETG price list. Before paying for speed, confirm in the maker's manual whether calibration is automatic, and read how to choose a 3D printer for the wider picture.
Common Questions
What is input shaping in 3D printing?
It is a firmware feature that reshapes movement commands so the vibration caused by fast direction changes cancels itself. The visible result is less ringing on the print at a given acceleration.
What causes ringing on a 3D print?
Ringing is caused by the printer's frame, belts and toolhead vibrating after a quick change of direction. The nozzle wobbles briefly and leaves a repeating ripple beside sharp corners and edges.
Does input shaping make a printer faster?
Indirectly. It lets the printer use higher acceleration without visible ripples, which shortens prints with many direction changes. Hotend flow, cooling and the printer's mechanics still set limits.
Do I need an accelerometer for input shaping?
No, but it makes calibration quicker. Klipper and Marlin both document test prints for finding the resonance frequency by measurement. Many current printers have a sensor built in and calibrate themselves.
Is pressure advance the same thing?
No. It corrects the lag in plastic flow from the nozzle during speed changes, which affects corners and line starts, while shaping corrects mechanical vibration of the toolhead. Fast printers typically use both.
Sources
- Klipper documentation: Resonance Compensation (ringing, shaper types, smoothing)
- Klipper documentation: Measuring Resonances (accelerometer calibration)
- Marlin firmware documentation: Input Shaping (ZV shaper, Fixed-Time Motion, calibration)
- Marlin firmware documentation: M593, ZV Input Shaping
- Klipper documentation: Pressure advance
- Duet3D documentation: Input shaping in RepRapFirmware