When selling your primary residence, you may be permitted to exclude up to $250k profit from the sale on your tax return. If married and filing a joint return, you may be able to exclude up to $500k. These exclusions are allowable only if you haven't excluded an earlier gain within the same two-year period ending on the sale date of your current home. You need to have lived in your home for a minimum of two years under the law, which you have.
Just so you know....Capital gains are calculated by the net selling price (sale price minus real estate commissions and closing costs) minus the adjusted basis (original cost plus capital improvements).
Hope this helped!
Robert A. Martini
Keller Williams Real Estate