If you’re talking a minor (ex: $5) increase, just do it immediately. If that amount is enough to chase a client away, did they really value your service in the first place?
Now if you’re looking at a major increase, don’t just change the price – change the entire program/offer to one that (obviously) provides more value.
I let them know about 6-months in advance by writing a well-crafted letter (not an email), that my hourly cost will be increasing. Justify the increase (which you can easily do) by indicating the cost of maintaining the certifications you currently hold, your cost for liability insurance, the last time you made an increase, etc. My clients have been very understanding as long as you can indicate in a transparent manner “why.”