What mgccrx is telling you, is that you can't continue to carry that $30K over for years - there's a limit on how many yrs you can carry it over, it's not an infinitive write off. You're right on 1 aspect, if you get a huge gainer, that will off set the capitol gains tax.