Depends. If you’re looking for affordability, then the price per melatonin tablet or capsule is most likely cheaper when bought online. If you want to ensure the reliability of the melatonin dosage, then you’re better off purchasing pharmaceutical-grade melatonin through your healthcare provider.