On 100% of the gain. $100 gain = $37 of tax $100 gain * 50% = $50 taxable dollars * your income tax rate = amount of tax Thus, if your tax rate is 45% then $22.5 of tax