If you have any capital gains this year, you can use loss carryovers to offset that, plus a loss of $3,000 on top of that. The $3,000 will be the net loss on your tax return after that calculation.
Here is some more information you may find helpful: What is a capital loss carryover?