The recommended dosage of melatonin for better sleep varies depending on individual needs, but typically ranges from 0.5 to 5 milligrams taken 30 minutes to an hour before bedtime.