Klipper Input Shaper Explained: What It Does and How to Tune It
This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. This helps us keep creating free content.
If you've ever printed a cube and noticed faint ripples echoing outward from corners, you've seen ringing, also called ghosting. It's caused by vibrations in the printer's frame and motion system. Every time the print head makes a sharp direction change (like turning a corner), the sudden deceleration sends a wave of oscillation through the structure, and those vibrations leave visible marks on the surface.
Klipper's Input Shaper is a firmware feature that counteracts these resonances by pre-shaping the motion commands. Instead of commanding a hard stop at a corner, it modifies the trajectory to cancel out the printer's natural vibration frequencies. The result is dramatically cleaner surfaces, especially at higher speeds.
How Input Shaper Actually Works
Every mechanical system has resonant frequencies, natural vibration modes determined by mass, stiffness, and damping. Your printer's X axis might resonate at 42 Hz while the Y axis resonates at 36 Hz (these are typical values).

Input Shaper works by splitting each motion command into two smaller impulses, timed so that the vibration from the first impulse is exactly cancelled by the vibration from the second. It's the same principle as noise-cancelling headphones, but applied to mechanical vibrations instead of sound waves.
Klipper supports several shaper algorithms:
- MZV (Modified Zero Vibration): The best general-purpose choice. Good vibration reduction with minimal smoothing of sharp corners. Start here.
- EI (Extra-Insensitive): More aggressive vibration cancellation but smooths corners a bit more. Good for printers with inconsistent resonance frequencies.
- 2HUMP_EI and 3HUMP_EI: Even more aggressive. Useful for printers with complex vibration profiles, but they round corners noticeably.
- ZV (Zero Vibration): Minimal smoothing but less effective at cancelling vibrations. Only useful if your printer's resonance is very consistent.

Setting Up the ADXL345 Accelerometer
Creality Ender 3 V3 SE 3D Printer
Beginner-friendly FDM printer with automatic bed leveling.
As an Amazon Associate we earn from qualifying purchases.
To tune Input Shaper properly, you need to measure your printer's actual resonant frequencies. This requires an ADXL345 accelerometer, a small, cheap sensor that clips onto your print head and toolhead.
Here's the hardware setup:
- Get an ADXL345 board. They cost around $3-5 on Amazon or AliExpress. Many come with wiring harnesses included.
- Wire it to your printer's MCU via SPI. The typical connection uses 5 wires: VCC (3.3V), GND, CS, MISO/SDO, MOSI/SDA, and SCLK/SCL. Check Klipper's docs for your specific board's SPI pins.
- Mount it on the toolhead. Use a small zip-tie, tape, or a printed mount. It should be firmly attached, any flex in the mounting adds noise to the measurements.
- Configure Klipper. Add the ADXL345 sensor definition to your printer.cfg with the correct SPI bus and CS pin.
Running the Resonance Test
With the accelerometer connected and configured, run Klipper's built-in test:
- Home all axes and move the toolhead to the center of the bed
- Run
TEST_RESONANCES AXIS=X, the printer will vibrate the X axis at increasing frequencies while the accelerometer records the response - Run
TEST_RESONANCES AXIS=Yfor the Y axis - Process the data with
~/klipper/scripts/calibrate_shaper.py

The calibration script outputs a frequency response graph and recommends shaper type and frequency for each axis. A typical output might look like:
| Axis | Recommended Shaper | Frequency | Max Accel |
|---|---|---|---|
| X | MZV | 42.6 Hz | 6,800 mm/s² |
| Y | MZV | 36.2 Hz | 4,900 mm/s² |
Applying the Settings
Add the recommended values to your printer.cfg:
[input_shaper]
shaper_freq_x: 42.6
shaper_freq_y: 36.2
shaper_type: mzv
Restart Klipper and print a test cube at your desired speed. Compare it to a cube printed before tuning, the difference is usually dramatic. Ghosting ripples that were visible at 60 mm/s will be gone even at 120-150 mm/s.
Tuning Tips and Common Mistakes
Re-test after hardware changes. Adding a new toolhead, changing belt tension, or modifying the frame changes the resonant frequencies. Re-run the calibration whenever you make mechanical modifications.
Don't use the same shaper type for both axes if the script recommends different ones. Klipper supports per-axis configuration:
[input_shaper]
shaper_freq_x: 42.6
shaper_type_x: mzv
shaper_freq_y: 36.2
shaper_type_y: ei
Mounting matters. A loose accelerometer gives noisy data and wrong frequency recommendations. If your graph shows broad, messy peaks instead of clear sharp ones, improve the mounting before trusting the results.
Bed-slingers need extra care. On printers like the Ender 3 where the bed moves on the Y axis, the resonant frequency changes depending on the print's mass. A heavy part near the edge of the bed shifts the Y resonance. For bed-slingers, err toward EI shaper on Y, it's more tolerant of frequency variation.
Input Shaper is one of those features that makes you wonder how you ever printed without it. Ten minutes of setup and calibration, and you get cleaner surfaces at twice the speed. That's an engineering win if I've ever seen one.
Published by the 3D Printer Stuff editorial team. Published December 1, 2026.
Editorial responsibility: see Imprint.
Spotted an error or have something to add? corrections@3dprinterstuff.com
Explore more
All articles on 3D Printer Stuff →
Maker Tips, Delivered
New guides, filament tests, and project ideas — every week in your inbox.
🎁 Free bonus: 3D Printing Starter Checklist (PDF)