Gains in excess of losses are taxed. Losses in excess of gains of less than $3K can be written off. Losses in excess of gains of more than $3K can be carried forward.
Careful in mix/matching short V Long term gains/losses as they are drastically different tax rates.
A lot of investors in Snakes will be writing off their losses here until they die.