Here we are talking literally the cost of construction, but there is also the cost of infrastructure, and the cost of transport. The reason we have a housing crisis is because as much as we all love single family homes, they aren't universalizable. If everyone were to live in a single family home, then after the transportation infrastructure reaches capacity, there is a cascade of issues that leads a region becoming totally unaffordable and ultimately unsustainable.
I would recommend the Strong Towns organization for anyone more interested in the interaction between long-term affordability issues and surburban infrastructure problems: https://www.strongtowns.org