Deductions & credits

Your cost basis is the inherited value + improvements + cost of sale.