You don't distribute retained earnings. You distribute the cash. It is tax free to the shareholders up to the amount of their basis in the S Corp stock.
You have clicked a link to a site outside of the Intuit Accountants Community. By clicking "Continue", you will leave the community and be taken to that site instead.