ADHD does not always cause insomnia, but the two show up together often, and ADHD can push sleep off course in three ways: a body clock that runs late, a mind that will not settle at bedtime, and the timing of stimulant medication. Poor sleep then makes attention, mood and impulse control harder the next day. The useful question is which of those is driving your nights, because each has a different fix.
Why ADHD and insomnia go together
A body clock that runs late
Many people with ADHD are night owls in a more literal sense than most. Their internal clock is shifted later, so the sleepy window does not open until well after a conventional bedtime. Go to bed at 11pm with a clock set for 2am, and you will lie awake. Not because anything is broken, but because your body does not think it is night yet. When this is the main issue it is often called delayed sleep phase, and it is a timing problem more than an insomnia problem.
A mind that keeps going
Bedtime is the first quiet moment of the day for a lot of people with ADHD. The ideas, the unfinished tasks and the half-remembered conversations all arrive at once. That is the same racing mind many people with insomnia describe, often louder.
Routines that drift
Hyperfocus at 10pm, one more episode, a phone in bed, a lie-in at the weekend. Each is understandable. Together they make your sleep timing unpredictable, and an unpredictable clock makes insomnia more likely.
Stimulant medication and sleep
The timing of stimulant medication can affect sleep for some people, and so can the period when a dose wears off. Others find their sleep is no different, or even more settled. It varies.
If you think your medication is part of the picture, note in a sleep diary when you take it and how you sleep, for a week or two. Then bring that to your prescriber. Do not change the dose or the time you take it on your own. That decision belongs with the person who prescribes it, who can weigh sleep against how your days go.

