If you earn above-average, spending 40% on rent might not cause you trouble. However, spending 40% on rent when you're on a median income is unadvisable. So instead, use the '40 method': divide your yearly income by 40, and the number you get is how much you should spend on rent.