The right height starts at the mattress top, not the floor. Measure from the floor to the top of the made bed, then decide how far the table-top should sit above or below that line. Many people keep the top level with the mattress, but the best choice depends on how you sit up and reach.
Width matters as much as height. Measure the wall between the bed and the door, and check how far the door swings. A narrow bedside table, about the width of a lamp base plus a small tray, can keep a walkway open in a small Kennesaw bedroom. The same logic applies to any custom bedside tables in the room. Confirm the actual reach from your pillow to the top surface before the drawing is final. A nightstand custom size works best when each measurement is written on the sketch.
Think about what you touch when you wake up. A glass of water, reading glasses and a phone cover most people's list. If you reach across the bed for these items, lower the top a few inches. If the table sits too low, the drawer front can hit the bed frame, so check the frame height in the plan as well. When both pieces are built together, coordinate the numbers with your custom bed frames order.