Capital losses first offset any capital gains you might have, in an unlimited amount. After this, if you have a net capital loss the first $3,000 of this loss can offset other income (such as business income). Any remainder carries over to the next year.