Capital gains or losses are based on what you paid vs what you sold for. Just because they go into default doesn't mean the bonds are worth zero - they will still trade and unless there's a bankruptcy process completed, the bonds aren't "worthless" yet. Remember there could be some recovery, at...