Can I Afford to Live in Harrisburg vs Madrid on $40K?

Here's how a $40K/year salary plays out in both cities after taxes, rent, and core living expenses โ€” based on Q1 2026 data.

Harrisburg, PA
$2,625/mo take-home
Rent: $1,250/mo (48% of take-home)
Difficult
Madrid, ES
$2,028/mo take-home
Rent: $1,200/mo (59% of take-home)
Difficult

Monthly budget breakdown

Harrisburg
PA
Madrid
ES
Monthly take-home (est.)
$2,625Best โœ“
$2,028
1BR rent
$1,250
$1,200Best โœ“
Groceries (est.)
$372Best โœ“
$380
Transport (est.)
$72Best โœ“
$150
Utilities
$175
$95Best โœ“
Internet
$63
$35Best โœ“
Left after essentials
$693/month
$168/month

Frequently asked questions

Is $40K a good salary in Harrisburg?

At $40K/year in Harrisburg, your estimated monthly take-home is $2,625. With 1BR rent around $1,250/month, rent takes up 48% of your take-home. That's considered difficult.

Is $40K a good salary in Madrid?

At $40K/year in Madrid, your estimated monthly take-home is $2,028. With 1BR rent around $1,200/month, rent takes up 59% of your take-home. That's considered difficult.

Which city is more affordable on a $40K salary?

Harrisburg leaves you with more money after core expenses โ€” $693/month vs $168/month in Madrid.

Can I afford to live alone in Harrisburg on $40K?

It's tight. Rent in Harrisburg would take 48% of your $40K take-home pay. You may need to find roommates or look at studios to stay within the 30% rule.

Compare other salary bands โ€” Harrisburg vs Madrid

See the full cost-of-living comparison

Rent, groceries, taxes, transportation, and more โ€” side by side.

Full comparison

Take-home estimates use simplified federal/state brackets and do not account for pre-tax deductions, 401(k), or local taxes. Data: Zillow, BLS, Numbeo ยท Q1 2026 ยท For general guidance only