Tax law changes

Will this help?   The tax rate for qualified dividends and long-term capital gain is based on your total taxable income, including the capital gain. It's the taxable income on Form 1040 line 15.

See this discussion,
https://ttlc.intuit.com/community/after-you-file/discussion/capital-gain-tax-for-married-filing-join...