🎯

Rotary Encoder Resolution Calculator

Counts per revolution, angular resolution and count rate for a quadrature encoder.

Input
ℹ Quadrature (×4) decoding gives 4 counts per pulse per channel.
Results
Counts / Rev—
Resolution—
Count Rate—
💡 Usage & Formula

counts/rev = PPR × decoding; resolution = 360 / counts/rev; count rate = counts/rev × RPM / 60.

When you need it: Working out counts per revolution, angular resolution and speed from an incremental encoder using quadrature decoding.

Worked example: A 1024 PPR encoder with 4× quadrature gives 4096 counts/rev → resolution = 360 / 4096 = 0.088°. Speed in RPM is (counts/s) × 60 / counts_per_rev.

Tips & gotchas:

  • 4× quadrature decoding quadruples resolution for free by counting every edge of both channels.
  • The index (Z) pulse gives one absolute home reference per revolution for zeroing.
  • Maximum count rate limits top speed — watch the hardware timer or interrupt load at speed.
  • Differential (RS-422) outputs survive noise on long cables far better than single-ended ones.

Common encoder PPR values

Counts per revolution for common incremental encoder sizes. Resolution and count rate are for ×4 quadrature decoding; count rate is at 1000 RPM.

PPR×1 counts/rev×2 counts/rev×4 counts/revResolution (×4)Counts/s at 1000 RPM (×4)
121224487.5°800
202040804.5°1,333
242448963.75°1,600
1001002004000.9°6,667
2002004008000.45°13,333
36036072014400.25°24,000
500500100020000.18°33,333
600600120024000.15°40,000
10001000200040000.09°66,667
10241024204840960.0879°68,267
20482048409681920.0439°136,533
250025005000100000.036°166,667
256025605120102400.0352°170,667
409640968192163840.022°273,067

Frequently asked questions

How many counts per revolution does a 20 PPR encoder give?

20 counts with ×1 decoding, 40 with ×2 and 80 with ×4 quadrature decoding. At ×4 one count is 360 / 80 = 4.5°.

Is CPR the same as PPR?

Not always. PPR is pulses per revolution on one channel. CPR is used two ways: some datasheets mean cycles per revolution (the same number as PPR), others mean counts per revolution after ×4 decoding (4 × PPR). Check which one the datasheet means before sizing a counter.

What PPR do I need for 0.1° resolution?

counts/rev = 360 / 0.1 = 3600. With ×4 decoding that is 3600 / 4 = 900 PPR; the next common size up is 1000 PPR, which gives 0.09° per count.

How fast do the counts arrive at speed?

counts/s = PPR × decoding × RPM / 60. A 2560 PPR encoder with ×4 decoding at 3000 RPM produces 2560 × 4 × 3000 / 60 = 512,000 counts per second, so the timer input or interrupt path has to keep up with that rate.