Input Shaper Calculator: Frequency, Shaper Type & Max Acceleration

If your ringing tower shows 6 oscillations over 12.14 mm at 100 mm/s, the resonance is 100 × 6 ÷ 12.14 = 49.4 Hz [1]. Set that as shaper_freq_x with Klipper’s default MZV shaper and its duration is 15.3 ms; Klipper’s own method then suggests max_accel up to about 7,200 mm/s² before the smoothing passes 0.12 mm [1][2][3]. On Marlin the same 49.4 Hz goes in as M593 X F49.4 [5]. The calculator reads your tower, checks the shaper against your frequency and gives you the config lines.

Resonance frequency

Klipper printer.cfg

Marlin G-code


All six Klipper shapers at your frequency

Fine-tune print (Klipper)

The shaper maths is Klipper’s own, ported to JavaScript and checked against Klipper’s Python on 156 cases (6 shapers, frequencies 18–130 Hz, damping 0.02–0.19, corner velocity 2–12 mm/s): amplitudes, delays, max acceleration and smoothing all agreed. Nothing is uploaded. Your own ringing tower and a print at the new acceleration have the final say.

How to read your ringing tower

Klipper. Print Klipper’s ringing tower (ringing_tower.stl) with input shaping off, pressure advance off and a tuning tower running acceleration from 1500 in steps of 500 every 5 mm. On the X mark and the Y mark, pick a stretch of the ringing and measure the distance D in mm across N oscillations, skipping the first one or two. The frequency is V · N ÷ D, where V is the external perimeter speed [1]. The docs’ own example is 100 × 6 ÷ 12.14 ≈ 49.4 Hz [1]. The X and Y marks sit at the back of the model and do not line up with the printer’s axes, which is deliberate [1].

Marlin ringing tower. Marlin’s page has you print a tower that sweeps M593 from 15 Hz to 60 Hz over the first 297 layers after two base layers. Find the height z of the layer with the least ringing and compute 15 + 45 × (z ÷ 0.2 − 2) ÷ 297 [6]. The page’s example, 20 mm, gives 29.85 Hz (Marlin’s page writes it truncated as 29.84 Hz) [6]. For another layer height, replace 0.2 with it; the calculator does that.

Marlin frequency sweep. Measure the distance in mm from the start of the pattern to the point where it changes and halve it: 62 mm is 31 Hz. Marlin’s page then picks the damping factor from the pattern with the most even look, in steps of 0.05 starting at 0.05 (7th pattern = 0.35), and sets both: M593 X F31 D0.35, then M500 to save [5].

Accelerometer. If you measured the frequency with an ADXL345 or similar, choose “I already know the frequency” and type it in.

Which input shaper to use

Klipper’s docs say most printers should use MZV or EI, and give a way to decide: print the test with MZV; if there is no ringing, use MZV. If there is, print it with EI and use EI only if it is noticeably better [1]. EI can suit bed-slingers, because the bed gets heavier and the frequency drops as a part grows, and it can suit delta printers whose frequency varies across the bed. EI is more tolerant of an error in the frequency but smooths more [1]. 2HUMP_EI and 3HUMP_EI are for covering several resonances, not for setting at the measured frequency [1]. Marlin’s built-in shaper is ZV; Marlin 2.1.3 added Fixed-Time Motion (M493) with its own ZV, ZVD, EI, 2HEI, 3HEI and MZV [6].

The six shapers compared

The table is for a 49.4 Hz resonance with Klipper’s default damping 0.1 and square corner velocity 5 mm/s. Duration is how long the shaper spreads each move; the longer it is, the more it rounds corners [1]. Max_accel is Klipper’s projection, rounded to 100 [3]. Smoothing is at 3000 mm/s².

ShaperDurationAt 49.4 HzMax_accel (mm/s²)Smoothing at 3000Cuts vibration to 5% within
ZV0.5 ÷ f10.2 ms9,5000.048 mmn/a (±5% for 10×)
MZV0.75 ÷ f15.3 ms7,2000.054 mm±4%
ZVD1 ÷ f20.3 ms4,8000.076 mm±15%
EI1 ÷ f20.3 ms4,4000.081 mm±20%
2HUMP_EI1.5 ÷ f30.1 ms2,6000.139 mm−40% to +45%
3HUMP_EI2 ÷ f40.1 ms1,5000.222 mm−50% to +60%

Durations and ranges are Klipper’s published table for damping about 0.075–0.15 [1]; the ZV shaper has no 5% entry, only ±5% at 10% vibration [1]. Max_accel and smoothing are our calculation of Klipper’s method [2][3]. The ordering by smoothing is ZV < MZV < ZVD ≈ EI < 2HUMP_EI < 3HUMP_EI [1].

How the shaper and max acceleration are calculated

An input shaper replaces each move with a few delayed, scaled copies whose vibrations cancel at the resonance. With frequency f and damping ratio ζ, let d = √(1 − ζ²), K = exp(−ζπ ÷ d) and td = 1 ÷ (f · d) [2]. ZV is two impulses, amplitudes 1 and K, at 0 and ½td. ZVD is 1, 2K, K² at 0, ½td, td [2]. MZV uses three impulses at 0, 0.375 and 0.75 of td; EI, 2HUMP_EI and 3HUMP_EI use fitted polynomials in ζ [2]. With ζ = 0.1, ZV is 1 and 0.729, MZV 0.293, 0.327 and 0.182 (relative weights; Klipper divides by their sum when it uses them) [3].

Smoothing is how far a corner is rounded. Klipper computes it from the impulse delays and the acceleration, and for a 90° corner also the square corner velocity [3]. Max_accel is the acceleration at which that smoothing reaches 0.12 mm, found by bisection; Klipper calls 0.12 “just some empirically chosen value” that gives good projections [3]. It is a guide: Klipper’s docs have you confirm it on a print [1]. Its auto-calibration rounds the suggestion to the nearest 100 mm/s² [3], and the lowest frequency it tries for each shaper is the one giving about 1500 mm/s² [2].

Worked examples

Tips

Sources

  1. Klipper docs: Resonance Compensation. Ringing frequency V · N ÷ D and the 49.4 Hz example, MZV/EI advice, shaper table (durations, vibration ranges), default damping 0.1, square corner velocity advice, fine-tuning formulas (45 Hz example), low-frequency advice.
  2. Klipper source: shaper_defs.py. Impulse amplitudes and times for ZV, MZV, ZVD, EI, 2HUMP_EI, 3HUMP_EI; default damping 0.1; per-shaper minimum frequency and maximum damping ratio.
  3. Klipper source: shaper_calibrate.py. _get_shaper_smoothing, find_shaper_max_accel (target smoothing 0.12, bisection), max_accel suggestion rounded to 100.
  4. Klipper docs: Configuration reference, [input_shaper]. shaper_freq_x/y, shaper_type (zv, mzv, zvd, ei, 2hump_ei, 3hump_ei, default mzv), damping_ratio_x/y (default 0.1).
  5. Marlin docs: M593 ZV Input Shaping. Parameters F (Hz) and D (zeta), X/Y/Z flags, M500 to save, frequency sweep (distance ÷ 2 = Hz), damping pattern in 0.05 steps.
  6. Marlin docs: Input Shaping. ZV shaper since Marlin 2.1.2 (echo delayed half the ringing interval), Fixed-Time Motion shapers in 2.1.3, ringing tower formula 15 + 45 × (z ÷ 0.2 − 2) ÷ 297 and the 20 mm → 29.84 Hz example.

All sources fetched and checked 25 Nov 2026. Klipper source read at master 7558e8c (shaper_defs.py, shaper_calibrate.py); config keys from the configuration reference [4]; the page does not use any measurement from our own printers.

Related: stepper driver Vref (A4988, DRV8825, TMC2209 current) · belt tension (Hz ↔ N, Voron & Prusa targets) · pressure advance (Klipper, OrcaSlicer, Bambu) · volumetric speed / max flow · print time estimator · flow rate · retraction distance & speed · temperature tower · steps per mm · e-steps & rotation distance · layer height

FAQ

How do I calculate the input shaper frequency?

Print a ringing tower with input shaping off, measure the distance D in mm across N oscillations on the X (or Y) mark, and compute the frequency as the print speed V times N divided by D. Klipper’s example, 100 mm/s with 6 oscillations over 12.14 mm, gives about 49.4 Hz. On Marlin, use the best layer height z in 15 + 45 × (z ÷ 0.2 − 2) ÷ 297, or halve the distance in the frequency sweep.

Which input shaper should I use, MZV or EI?

Klipper’s docs say most printers should use MZV or EI. Print the ringing test with MZV, and if there is no ringing keep it. If there is, try EI and use it only if it is clearly better. EI tolerates a wrong frequency better, which can suit bed-slingers and deltas, but it smooths corners more.

What max acceleration should I set with input shaping?

Klipper’s calibration suggests the acceleration at which the corner smoothing reaches 0.12 mm, rounded to 100 mm/s². For MZV at 49.4 Hz that is about 7,200 mm/s², and it falls as the frequency drops or the shaper gets longer. Treat it as a ceiling and confirm it on a print, since Klipper’s docs have you check the smoothing yourself.

What damping ratio should I use?

Klipper’s default is 0.1, which it calls a good all-round value, and its published shaper ranges assume about 0.075 to 0.15. Marlin’s frequency sweep method finds a damping factor from the pattern with the most uniform look, in steps of 0.05 from 0.05, and sets it with the D parameter of M593.

Does Marlin have MZV, EI and the other shapers?

Marlin’s integrated shaper (M593) is ZV, added in version 2.1.2. Marlin 2.1.3 introduced Fixed-Time Motion, controlled with M493, which comes with ZV, ZVD, EI, 2HEI, 3HEI and MZV. This calculator gives M593 lines for the integrated ZV shaper.

My resonance is below 25 Hz. What now?

Klipper’s docs say a frequency below about 20 to 25 Hz is worth fixing mechanically first, by stiffening the printer or reducing the moving mass, because the shaper will otherwise limit acceleration through smoothing. At around 25 Hz and below even MZV can smooth too much, so they suggest trying ZV.

Why does the X and Y frequency differ, and which max_accel do I use?

The two axes move different masses, so their resonances differ, and a bed-slinger’s Y axis carries the bed and the print. Klipper has one max_accel, so start from the lower of the two suggestions, then raise it only while your test print stays sharp.