If your income + capital gains is less than $40,000 this year, your long term capital gains rate is 0%.
Go 1% over, and you pay 15% on the whole thing. It's really silly (and also not progressive; as the vast majority of America falls under the $40k to $440k bracket).
You pay 0% up to $40K, and the 15% starts applying only to income greater than $40K. You absolutely do not pay 15% on the whole thing.
You can verify on the IRS worksheet itself line 11 "This amount is taxed at 0%":
https://apps.irs.gov/app/vita/content/globalmedia/capital_ga...
Here's a blog entry describing:
"Notably, because the 0% long-term capital gains rate only applies until crossing the threshold of... taxable income..., the reality is that the opportunity for 0% capital gains is inherently limited – as with other low tax brackets, it only applies until there’s enough income to cross out of that bracket, and any additional income falls in the next higher bracket."
https://www.kitces.com/blog/understanding-the-mechanics-of-t...
For instance, I'm married and I can make $120k (with no other income) of long term capital gains and pay $2.5k in federal taxes on it.
The cap gains bracket is progressive.
Source:https://turbotax.intuit.com/tax-tools/calculators/taxcaster/