Do I owe the 3.8% investment income tax on a sale?

Sometimes. Taxable gain can also be subject to the 3.8% Net Investment Income Tax, depending on your situation.

Learn more: Explainer: what happens when you sell

Source: IRS Net Investment Income Tax

Estimate your deduction

General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.