The first measurement is the top of your mattress, taken with the bed made and the pillows in place. A nightstand top should sit close to that line, so your arm can rest on it without lifting or reaching down. Many people find that a top 1 to 2 inches below the mattress top works well, but the right figure depends on your bed and how you sleep.
If your bed uses a tall frame, a thick pillow top or a bed riser, a standard table often looks too low, and a made to order nightstand can be set to your bed. A nightstand custom size lets your manager set the height from your actual bed. Tell us the mattress height, the frame height and whether you use a headboard with shelves, because each of these changes the reach. Bedroom projects in Indian Trail often involve older beds that were bought before the current mattress, so the measurement is worth taking twice.