Several elections are available to an S corporation or its shareholders that can affect the basis adjustments caused by distributions and other events.
4 S Corp Elections that Affect Basis

Several elections are available to an S corporation or its shareholders that can affect the basis adjustments caused by distributions and other events.