Deductions & credits

We recently sold a boat for more than what we paid for it, however, there were extensive repairs that were needed which would cover any amount over the purchase price.  It would seem that it would be equal to the selling price.  Are there deductions for repairs and other expenses?