Deductions & credits

I corrected a small typo: sales expenses reduce your amount realized, and closing costs when you bought the house *increase* your cost basis.  These expenses work together to reduce your gain, so take the time to document them.