Home prices may be rising by double-digit percentages annually but buying a home still may be more affordable than renting in several of the nation’s largest cities, according to a new study from realtor.com®. Record-low mortgage rates are helping to tilt more markets in favor of buying over the past year. Researchers analyzed the monthly cost of buying a median-priced home to the median price of renting a two- to four-bedroom unit in the 50 largest markets this January. They found that buying a home cost the same or was cheaper in 15 of the 50 largest metros, up from 13 a year ago. Still, in most of the markets, renting is cheaper. Overall, the monthly cost to purchase a median-priced home in the U.S. is $1,988, while the cost to rent is $1,724. Buying a median-priced home comprised 32% of a metro’s median income—the cost to rent accounted for 27%, the study finds. There is not a one-size-fits-all answer to the question of whether it makes more sense to buy than rent. This is encouraging news for the millions of millennials who are approaching peak homebuying age and may be considering shopping for a home this spring. With interest rates expected to rise over the coming months, buyers may need to act sooner rather than later to take advantage of today’s affordability or be prepared to adjust their target purchase price.