Deductions & credits

Sorry but  the depreciation taken must be recaptured as ordinary income and only the capital gain left over after the recapture  is taxed at the cap gain rate.   Review the Sch D, form 4797 and the cap gain worksheets.