Shave lightly over acne-affected areas, and try not to drag your razor or nick pimples. An electric or safety razor may be less irritating than a traditional blade.
Whatever type you use, make sure it’s sharp. Always shave in the direction of hair growth and after you shower, when hair is softened. Use warm water to wet your beard, but cold water to rinse your blade, and choose a thick shaving cream. Avoid shaving when your skin is super inflamed.
Applying acne medications afterward, instead of aftershave, can help control breakouts. However, only use them if they don’t irritate your freshly shaved skin. Your doctor may be able to prescribe medications that don’t sting when applied after shaving.