Losses are not fully tax deductible.
To offset regular income, it's only $3000 a year but losses can be carried forward (though it stays at the dollar value, no inflation is taken into account).
So often largely deductible with some caveats.
It still seems asinine that bad investments are essentially tax subsidized, but whatever.