You can exclude the gain only once every two years.
Capital gain calculation:
capital gain=selling price less some closing costs and settlement costs less adjusted cost basis.
adjusted cost basis=purchasing price plus some closing costs and settlement costs plus improvement less depreciation
The amount more than the exclusion will be taxed as long term captial gain since you have held the property for more than one year. The rate is 5% or 15%( some may in 5% to the extent of 15% tax bracket).