So here is my dilemma. I have a really bad stock in the portfolio. To make it simple I'll say it's down $1000. I want to sell it and never buy it back. No wash rule applies here. However, I have a great stock I want to keep forever and have made $1000. I want to sell both. Can I sell the bad stock and write off the balance against the good stock? Here is the tricky part. I want to buy back the good stock right away. I figure I can protect the gains I have made with it, not pay taxes on them, and write off the loss. Is this a good decision? Am I missing something?
If you are talking about the U.S, the answer is yes, you can use the $1,000 you lost in the bad stock to offset the $1,000 you gained in the good stock, as long as you don't buy back the bad stock within 30 days.
Also, your strategy to sell and buy right away the good stock is pointless. Did you know that you can also use those $1,000 you lost to offset other things? You can use it to offset your ordinary income (your normal job income) up to $3,000 per year; any amount beyond that can be used in later years. Your ordinary income is probably taxed at a higher rate, so it makes sense to offset that instead.
Capital losses certainly count against capital gains on your taxes, but that sell and rebuy also means you're resetting the baseline so you'll be reporting greater capital gains later. Basically all you're doing is shifting when you'll pay the taxes, and quite possibly paying a transaction fee or two to do it. There may be cases where changing when you pay the tax his advantages, but you haven't presented us with such a scenario.
I have had the same question regarding selling a poor investment at an $8k loss. Since I am over the $3k per year limit, yes I could carry the balance of $5k into next year and the next, but I don't need to as I already have a large loss that I inherited from an estate.
On the other hand, I would like to "reset" the base cost of an investment I have held for a long time and realize the capital gain to offset the other loss. Resetting the baseline should I choose to use the capital gains to repurchase this stock or another stock would enable me to sell the new stock with less capital gains in the future and therefore pay less taxes.
Also keep in mind that the tax laws may change in the future, and that this scenario may not benefit other situations as indicated by other comments.