How old do you have to be to buy over-the-counter medicines?

Depends. It depends on the medication. If it has no controls anyone with money can purchase the medication unless there are other particular state regulations.