St John's Wort only causes insomnia when consumed in large amounts. Generally, the plant helps you fall asleep by boosting serotonin levels. But if your serotonin levels get too high, you might struggle to sleep. To encourage sleep and avoid insomnia, you should take less than 1g of St John's Wort before bed.