Cash to you at closing
—
Total selling costs
—
Where the sale price goes
Gain on the sale
Gain = sale price − selling costs − purchase price − improvements. In the U.S., homeowners who lived in the home 2 of the last 5 years can usually exclude up to $250,000 of gain from tax ($500,000 if married filing jointly). This is an estimate, not tax advice.
If the sale price changes
Percentage-based costs (like commissions) move with the price; flat costs stay the same.