Generally, your nightstand shouldn’t be too far from the bed; otherwise, you will have to reach out to grab your stuff or to turn off the lamp. It would be best to keep the nightstand two or three inches away from the bed.