How do you carbonate?
I use a priming solution that I add to the beer before bottling. But you have to know what your actual volume of beer to be bottled really is. Not what you hope it's going to be.
So if you planned your priming sugar for say 10 bottles and only got not quite 7 bottles of beer, then that's a problem.
That was my mess up with the wheat beer I made several months ago.
But as others said, if you were in a hurry to bottle and the yeast wasn't fully finished munching on sugar, then that unknown amount of sugar also figures in to your priming sugar calculations.
Before you bottle, let your beer sit for a while after reaching it's FG. Make certain it's the beers own FG and not just what the recipe says.
while = week or two in my world.