How old do you have to be to buy ipecac syrup?

Generally 18, and you might have to sign a registry, but it depends, so ask a pharmacist.

However, you might not be able to find it anymore. The American Medical Association no longer recommends inducing vomiting.