Deductions & credits

If you don’t adjust the cost basis, and you don’t add the gift into your selling costs then how do you offset the capital gains the IRS will see when purchase price isn’t offset by the gift of equity either?