Can short-term capital losses offset long-term capital gains from selling appreciated stock?
Sold some appreciated stock I'd held for about four years — decent long-term gain. Separately, I sold some tech shares I'd owned for eight months at a loss. My brokerage's tax summary shows both, and my tax software is combining them in a way I didn't expect. I always assumed losses and gains just netted against each other but I'm not sure the short-term vs. long-term distinction changes how that works. Can short-term capital losses offset long-term capital gains from selling appreciated stock, or does the IRS make you match them like-for-like? I've looked at Schedule D but the two parts still confuse me. Trying to understand whether I owe tax on the full long-term gain or whether the short-term loss brings it down before rates are applied.