Common causes of a rough idle when the AC is on are a faulty idle air control (IAC) valve or a problematic cooling fan. The IAC valve controls the amount of air required for a steady idle, so any faults can lead to an unstable, rough idle. On the other hand, the cooling fan typically runs faster with the AC on, so a faulty cooling fan may lead to a poor idle.