The real answer, not the one you tell yourself when you're excited about the apartment.
The 30% rule uses gross income. Use your actual take-home pay - that's what hits your bank account, and that's what matters when rent is due.
Don't forget about next year. Will you be able to afford a rent increase? If you're already stretched thin, a 5% bump could push you over the edge.
That apartment 45 minutes out might save $200/month in rent but cost you $300 in gas and commute time. Do the full math before you commit.
The common guideline is no more than 30% of your gross income, but what matters more is your take-home pay after taxes and your total monthly obligations. Use a rent affordability calculator that factors in all your bills for a realistic picture.
The 50/30/20 rule suggests spending 50% of after-tax income on needs (housing, bills, groceries), 30% on wants (entertainment, dining out), and 20% on savings and debt repayment.