Although S corporations generally aren't subject to tax, those that were formerly C corporations are taxed on built-in gains (such as appreciated property) that the C corporation has when the S election becomes effective, if those gains are recognized within 5 years after the corporation becomes an S corporation.