The Internal Revenue Code restricts the number of losses an S corporation shareholder can claim in a given tax year. The stock basis, at-risk activity, and passive activity are three primary loss limitations.