Workshop/Klipper Input Shaper Explained: What It Does and How to Tune It

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.

Klipper Input Shaper Explained: What It Does and How to Tune It

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).

Klipper Input Shaper Explained: What It Does and How to Tune It — practical guide overview
Klipper Input Shaper Explained: What It Does and How to Tune It

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.
Klipper Input Shaper Explained: What It Does and How to Tune It — step-by-step visual example
Klipper Input Shaper Explained: What It Does and How to Tune It
Which shaper to pick: For most printers, MZV gives the best balance of ringing elimination and corner sharpness. EI is your fallback if MZV doesn't fully eliminate ghosting. The HUMP variants are a last resort.

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.

See on Amazon →

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:

  1. Get an ADXL345 board. They cost around $3-5 on Amazon or AliExpress. Many come with wiring harnesses included.
  2. 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.
  3. 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.
  4. 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:

  1. Home all axes and move the toolhead to the center of the bed
  2. Run TEST_RESONANCES AXIS=X, the printer will vibrate the X axis at increasing frequencies while the accelerometer records the response
  3. Run TEST_RESONANCES AXIS=Y for the Y axis
  4. Process the data with ~/klipper/scripts/calibrate_shaper.py
Klipper Input Shaper Explained: What It Does and How to Tune It — helpful reference illustration
Klipper Input Shaper Explained: What It Does and How to Tune It

The calibration script outputs a frequency response graph and recommends shaper type and frequency for each axis. A typical output might look like:

AxisRecommended ShaperFrequencyMax Accel
XMZV42.6 Hz6,800 mm/s²
YMZV36.2 Hz4,900 mm/s²
Key insight: The "Max Accel" value tells you the highest acceleration where the shaper can still effectively cancel vibrations. Set your slicer's acceleration at or below this value. Going higher reintroduces ringing.

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

Share with fellow makers:
klipperdeep-divefirmwaretuning
📖

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)

🧭Part of our topic hub: Printer Hardware→

You might also like

Comments (0)

Leave a comment

Comments are reviewed before publishing.