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.
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².
| Shaper | Duration | At 49.4 Hz | Max_accel (mm/s²) | Smoothing at 3000 | Cuts vibration to 5% within |
|---|---|---|---|---|---|
| ZV | 0.5 ÷ f | 10.2 ms | 9,500 | 0.048 mm | n/a (±5% for 10×) |
| MZV | 0.75 ÷ f | 15.3 ms | 7,200 | 0.054 mm | ±4% |
| ZVD | 1 ÷ f | 20.3 ms | 4,800 | 0.076 mm | ±15% |
| EI | 1 ÷ f | 20.3 ms | 4,400 | 0.081 mm | ±20% |
| 2HUMP_EI | 1.5 ÷ f | 30.1 ms | 2,600 | 0.139 mm | −40% to +45% |
| 3HUMP_EI | 2 ÷ f | 40.1 ms | 1,500 | 0.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
- Klipper docs example (X mark): 6 oscillations over 12.14 mm at 100 mm/s is 49.42 Hz, shown as 49.4 Hz [1]. With MZV: duration 15.3 ms, max_accel ≤ 7,200 mm/s², and at 3000 mm/s² corners smooth by 0.054 mm. Within 5% vibration it covers 47.4–51.4 Hz (±4%) [1]. With EI the limit falls to 4,400 mm/s², and with 3HUMP_EI to 1,500.
- Marlin tower, best layer at 20 mm: 29.85 Hz. Marlin:
M593 X F29.8,M500[6]. ZV at this frequency has a 16.8 ms duration, which Marlin implements as an echo delayed by half the ringing interval [6]. - Marlin sweep, change at 62 mm, 7th damping pattern best: 62 ÷ 2 = 31 Hz and 7 × 0.05 = 0.35, so
M593 X F31 D0.35[5]. - A low frequency (25 Hz, bed-slinger): Klipper’s suggested max_accel falls to 2,100 mm/s² with ZV, 1,800 with MZV and 1,000 with EI, with the same 0.12 mm limit [3]. Klipper’s docs say that around 25 Hz and below even MZV can smooth too much, so try ZV, and below about 20–25 Hz first look at making the printer stiffer or lighter [1].
- Fine-tuning a 45 Hz result (Klipper docs): start = 45 × 83 ÷ 132 = 28.30 and factor = 45 ÷ 66 = 0.6818 for
TUNING_TOWER. If band 5 looks best, the new frequency is 45 × (39 + 5 × 5) ÷ 66 = 43.6 Hz [1].
Tips
- Tune acceleration after the shaper: the pressure advance calculator sets the other half of a clean corner, and Klipper says to switch pressure advance off while measuring ringing [1].
- Keep square corner velocity at 5 mm/s: Klipper advises against raising it with a shaper on, because it adds smoothing, and says to raise acceleration instead [1].
- Re-measure after changing the bed, adding glass or changing anything that moves the resonance [1].
- Set belt tension before measuring: a loose belt lowers the resonance. The belt tension calculator turns a plucked-belt frequency into newtons and gives Voron and Prusa targets.
- Higher acceleration only helps if the printer can use it. Check what the hotend can melt with the volumetric speed calculator and see the time saved in the print time estimator.
Sources
- 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.
- 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.
- Klipper source: shaper_calibrate.py. _get_shaper_smoothing, find_shaper_max_accel (target smoothing 0.12, bisection), max_accel suggestion rounded to 100.
- 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).
- 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.
- 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.