analogWrite does nothing on Arduino Uno: which pins support PWM

On an Arduino Uno, analogWrite gives PWM only on pins 3, 5, 6, 9, 10 and 11, marked with a tilde (~) on the board. On any other pin the output is just on or off.

What the message means

Only pins wired to a hardware timer can make PWM. On other pins analogWrite sets the pin fully low for values below 128 and fully high for 128 and above.

Fix it in this order

  1. Check the pin is one of 3, 5, 6, 9, 10 or 11, or shows a ~ symbol on your board.
  2. Move the wire to a PWM pin and update the pin number in the sketch.
  3. Call pinMode(pin, OUTPUT) in setup.
  4. Remember that the Servo library stops PWM on pins 9 and 10, and tone() affects pins 3 and 11.
  5. On other boards check the pinout, because the PWM pins differ.

Why it happens

PWM is a fast on-off pattern whose duty cycle sets the average voltage. On an Arduino Uno, only pins 3, 5, 6, 9, 10 and 11 have hardware timers that generate it. On any other pin, analogWrite() cannot produce a varying pattern. The output is driven low for values below 128 and high for values from 128 upward, so an LED on a non-PWM pin looks either fully on or fully off and never dims.

Timers are shared among features. The Servo library disables PWM on pins 9 and 10, and tone() uses a timer that affects pins 3 and 11, so a PWM output that worked may stop when another library is added. Other boards have a different set of PWM pins, so the pinout of your own board is the authority.

If you see this, do this

You seeDo this
LED or motor only full on or offThe pin has no PWM.
PWM stops when Servo is addedTimer conflict. Use other pins.

Confirm the fix

  1. Connect an LED with a resistor to pin 9, run analogWrite(9, 128), and confirm it looks dim rather than fully on.
  2. Move the same LED to pin 2, run analogWrite(2, 128), and compare the brightness; a non-PWM pin looks fully on.
  3. Measure the output pin with a multimeter using analogWrite values of 64 and then 192; the reading should rise with the value on a PWM pin.

Common mistake: Readers assume analogWrite() works on any pin with a wire attached, when only the PWM-marked pins generate a true varying output.

Arduino Uno pinout, PWM motor whine, servo jitter.

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.