Buying a home already comes with plenty to consider, like price and location, but if you have children or plan to start a family, childcare should also be part of the equation.

Some parents pay upward of $45,000 a year in childcare, and while a lot of that has to do with the quality of childcare, a big part of the price also depends on where you’re located.

Redfin, in partnership with childcare marketplace and data platform Winnie, calculated the share of income spent on childcare costs combined with housing costs across the 100 most populous metros.

Across the country, families spend 52% of their annual income on housing and childcare…