I end up lying awake until 4 am and then have some very very light sleep for about and hour or two. My Garmin shows me that I get no deep sleep at all.
For me it was more of a realization it was my diet. I changed my diet to remove some particular types of foods and now I sleep good. If I eat those foods I sleep like crap. Pop a tums and I am good (it is the upset stomach waking me randomly, so the bad sleep). Everyone has different reasons why. But the top ones are typically stress, injury, or food are a good place to start.