How old do you have to be?

Hold old do you have to be to buy things like plan B and pregnancy tests in the UK? Just wondering X