S Corp Shareholder Loan Repayment: Why Part Is Taxable
Your S corporation repaid your loan. If past losses used up the loan’s basis, part of the repayment is taxable, and California figures its own gain.
Han S Kim, CPA
12/1/20264 min read


In March 2024, an owner lent his own S corporation $100,000 to get through a slow stretch. He signed a promissory note with interest and a repayment schedule. He is the only shareholder and works in the business full time. The company lost $70,000 that year and $40,000 the next, and he deducted both losses on his personal returns.
In June 2026, with business back on track, the company paid him the full $100,000. To him, that is his own money coming home. On his federal return, $60,000 of it is taxable.
Why would getting my own money back be taxable?
He already used most of that money to lower his taxes. An S corporation owner can deduct the company's losses only up to what he has put into it, counting both his stock and any money he has lent it directly (IRC §1366(d)). Each dollar of loss he deducts uses up a dollar of that investment for tax purposes. Once the stock side is gone, the losses start using up the loan.
He had $20,000 of stock basis going into 2024. The $70,000 loss used that and $50,000 of the loan. The $40,000 loss in 2025 used another $40,000. By the end of 2025, only $10,000 of the loan was still unused for tax purposes, even though the company still owed him the full $100,000. Before counting anything that happened in 2026, $90,000 of the repayment would be taxable.
Only a debt the company owes him directly counts (Treas. Reg. §1.1366-2(a)(2)). Personally guaranteeing the company's bank line does not count, except to the extent he actually makes payments on it.
This year's profit brings part of the loan back
When the company makes money in a later year, that profit first rebuilds the loan's tax basis before it adds anything to his stock (IRC §1367(b)(2)(B)). This works even for a loan repaid partway through the year: profit earned in November still counts toward a loan repaid in June.
The company earned $30,000 in 2026. That brings his loan basis from $10,000 back to $40,000 before the June repayment. Of the $100,000 he received, $40,000 is a tax-free return of his loan and $60,000 is taxable gain.
Taking money out in December makes the June repayment more expensive
Money the owner takes out during the year reduces the profit left to rebuild the loan. If he takes $20,000 out in December, only $10,000 of the year's profit rebuilds the loan, its basis reaches only $20,000, and his gain on the repayment rises from $60,000 to $80,000. The December payment itself is not taxed, because that year's profit covers it, but it adds $20,000 of taxable gain to the June repayment. Putting more money into the company does not fix this. A contribution is not profit, so it does not rebuild the loan.
Leaving the money in the company only delays the tax. If he takes the same $20,000 out in 2027 and the company has no profit that year, he has no stock basis left to cover it, and the withdrawal is taxable then (IRC §1368(b)(2)). The same stock basis decides whether any withdrawal is taxed, which I covered in your S corporation paid you more than your basis.
Does it matter whether I signed a note?
It changes the kind of income. Because he signed a note, the repayment is treated like a sale of the note (IRC §1271(a)(1)). He held it for more than a year, so the $60,000 is generally long-term capital gain, which gets lower federal rates.
Many owners never sign anything. They move money in when the account runs low and pull it back out later. When the total the company owes the owner at year end is $25,000 or less, the IRS calls this open account debt (Treas. Reg. §1.1367-2(a)(2)), and gain on repaying it is ordinary income, taxed like wages. Owing more than $25,000 at year end changes how the balance is tracked in later years, but it does not by itself turn the gain into capital gain.
The company reports the repayment on his K-1 in box 16, code E, but that is only the cash he got back. The K-1 does not say how much is taxable. He has to work that out on Form 7203, using the loan's history. In returns I review, the gain gets missed when nobody carried the loan's basis forward from earlier years, so the repayment looks like the owner simply getting his money back.
California figures a different gain on the same repayment
California follows the federal S corporation rules for owners (R&TC §17087.5) but does not allow bonus depreciation, the federal rule that lets a business write off equipment in the year it buys it (R&TC §17250). If part of the earlier losses came from bonus depreciation, California saw smaller losses, used up less of the loan, and taxes less of the repayment.
Suppose $30,000 of his 2025 loss came from writing off equipment bought and put into use after January 19, 2025. Assume California spreads that cost over the standard seven-year schedule, no Section 179 election was made, and there are no other state differences. California then counts $58,366 of the loan as unused when the company repays it, and his California gain is $41,634 instead of $60,000.
The capital gain label does not help in California, which taxes capital gains at the same rates as wages. A basis record kept only on federal numbers would overstate his California gain by $18,366.
What can he still change before December 31?
The repayment has already happened, but the gain on it is not final until the year closes. The decision still open is whether to take money out in December, because withdrawals reduce the profit that rebuilds the loan (IRC §1367(b)(2)(B)). In his case, each dollar he takes out in December, up to $30,000, adds a dollar to his gain on the repayment.
Answering that before year end takes a current federal and California basis record built from the loan's history, the company's results so far this year, and what he has already taken out. That review is part of tax advisory work for S corporation owners. After December 31, the withdrawal can no longer be changed, and rebuilding basis at tax time can only report the result.
This article is general information. The result depends on stock and loan basis entering 2026, whether each loan is a written note or open account debt, the corporation's 2026 income and distributions, and the federal and California depreciation history behind the earlier losses.
Contact
Get in touch for expert advice.
Follow
Work with me
© 2026. All rights reserved.
Privacy Policy | Terms of Use
From tax filing to tax strategy, the next step is a conversation.
In-person consultations available: Los Angeles & Irvine (by appointment only)
한국어 가능
