Complex sentence: If there were a loss, the amount would be reported to the IRS, which would offset gains with losses and settle up with taxpayers at the end of the period.
Split into simpler sentences: If there were a loss, the amount would be reported to the IRS. The loss would offset gains, and the IRS would settle up with taxpayers at the end of the period.