The house is often the largest asset and the hardest one to split. Common outcomes are a sale with the proceeds divided, a buyout where one spouse keeps the house and pays the other their share, or one parent staying in the home with the children for a set period before a sale.
The value usually comes from an appraisal, and the mortgage and any home equity loan come off the top. If one spouse owned the house before the wedding, the separate and marital portions are worked out first.