Share your insights or perspective on the financial matter presented in the input.

Taking Losses To Save On Tax
Tax questions require that you specify a jurisdiction.  Assuming that this is the US, you owe Federal income tax (at the special long-term capital gains tax rate) on the net long-term capital gains (total long-term capital gains minus total long-term capital losses) and so, yes, if these two were your only transactions involving long-term holdings, you would pay long-term capital gains tax on $3000-$50 = $2950.  Many States in the US don't tax long-term capital gains at special rates the way the Federal Government does, but you still pay taxes on the net long-term capital gains. I suspect that other countries have similar rules.