S-Corp Shareholder Basis and Form 7203: How Distributions and Losses Get Taxed (2026 Guide for Freelancers)
TL;DR: Once your freelance business is an S-corp, two numbers you never see on any statement decide how your money gets taxed: your stock basis and your debt basis. A distribution is tax-free only up to your stock basis, and under IRC §1368(b)(2) the excess is treated as gain from the sale or exchange of property, reported on Form 8949 and Schedule D. A loss on your Schedule K-1 is deductible only up to stock basis plus debt basis under IRC §1366(d)(1), and the rest is suspended and carried forward indefinitely. Distributions lower basis before losses are applied, a bank-loan guarantee does not create debt basis (Treas. Reg. §1.1366-2(a)(2)(ii)), and a repayment of a loan you made to your own company can itself be taxable if losses already used up that loan's basis. In the worked example below, a $35,000 K-1 loss produces only $15,000 of deduction in the year, a $10,000 loan repayment is either tax-free or a $10,000 capital gain depending on the year's income, and a $40,000 distribution against $25,000 of basis creates a $15,000 gain. Form 7203 is the IRS's worksheet for all of it. None of this changes the reasonable-salary rule, which sits on the payroll side.
Why Basis Is the Number Your S-Corp Never Shows You
Most freelancers who elect S-corp status do it for the payroll-tax math. They learn about reasonable compensation, set up payroll, and start taking distributions. Then at some point a distribution is bigger than expected, or the first year loses money, and a question nobody answered at setup comes up: how much of this is actually tax-free, and how much of this loss can I actually use?
The answer is basis. In plain terms, basis is the running tax-cost of your ownership stake: what you put in, plus the profit that has already been taxed to you, minus what you have already taken out or deducted. The S-corp's bookkeeping doesn't keep it. Your Schedule K-1 gives you inputs, but the Instructions for Form 7203 are blunt about who owns the tracking: "You are responsible for keeping the information needed to figure the basis of your stock in the corporation."
Two separate pools matter:
- Stock basis. Generally your cost for the stock (cash you contributed, for example), adjusted every year.
- Debt basis. Your basis in money you have personally lent to the S-corp, evidenced by a note or an open account balance.
The reason to care is that basis feeds two different tax outcomes: whether a distribution is tax-free, and whether a loss is deductible. Both are covered below, followed by the traps most likely to cost real money.
This guide assumes the S-corp has no accumulated earnings and profits, which is the usual position for a business that has always been an S-corp. If your company was once a C-corporation and still carries earnings and profits, a different ordering applies to distributions and you should have a CPA confirm the layering. For how the election itself works, see the S-corp election guide and the comparison of an S-corp against a default LLC.
How Stock Basis Moves Each Year
IRC §1367(a) sets the adjustments. In your own words, basis goes up for the income items that pass through to you and down for distributions, losses, and certain nondeductible expenses, and it cannot fall below zero. The Form 7203 instructions list the same sequence: increases first, then distributions, then nondeductible expenses, then losses and deductions.
| Basis goes up for | Basis goes down for |
|---|---|
| Income items on the K-1, including tax-exempt income | Distributions (tax-free ones) |
| Cash or property you contribute for stock | Losses and deductions on the K-1 |
| Excess depletion over the property's basis | Nondeductible expenses of the corporation |
Three details that cause real mistakes:
- Your W-2 salary is not on this list. Wages the S-corp pays you are a deduction of the corporation, so they lower the profit that flows to your K-1. They do not directly raise or lower your stock basis.
- Basis is generally measured at the end of the corporation's tax year. The Form 7203 instructions say "The basis of your stock is generally figured at the end of the corporation's tax year." That matters for planning: a capital contribution or a loan you make before year-end can count for that year's limits, and one made in January can't.
- Tax-exempt income raises basis too. It is on the same list as taxable income, so it is not wasted.
Distributions: Tax-Free Up to Basis, Capital Gain Above It
For an S-corp with no accumulated earnings and profits, IRC §1368(b) draws the line cleanly. Under §1368(b)(1): "The distribution shall not be included in gross income to the extent that it does not exceed the adjusted basis of the stock." Under §1368(b)(2): "If the amount of the distribution exceeds the adjusted basis of the stock, such excess shall be treated as gain from the sale or exchange of property."
The Form 7203 instructions turn that into a filing mechanic: "If the amount of the distribution is more than the stock basis before distributions, report the excess amount as a capital gain on Form 8949, Sales and Other Dispositions of Capital Assets, and Schedule D." And the next sentence matters just as much: "Don't increase your stock basis for the amount of capital gain reported for the excess." The gain doesn't buy you basis, so the next distribution runs into the same wall.
What this does and does not mean:
- It does mean a distribution above basis is taxed in the year you take it, even though the S-corp itself, as a pass-through, paid no income tax on that money.
- It does not mean the excess is automatically taxed at the long-term capital gain rate. The statute says the excess is treated as gain from the sale or exchange of property, and the Form 7203 instructions say to report it as a capital gain. How long you have held the stock should drive whether it is long-term or short-term under the ordinary holding-period rules. A newly formed S-corp's stock may not have been held long enough, so confirm the character with your CPA before assuming the lower rate.
- It does not convert the distribution into self-employment income. The payroll-tax issue and the basis issue are separate: the reasonable-salary rule governs whether a distribution should have been wages, while basis governs whether a distribution is taxable at all.
If you have ever paid personal bills from the business account and called it "owner draw," that is how an over-distribution happens without anyone noticing. The mechanics for doing it properly are in the accountable plan guide.
Losses: Deductible Only Up to Stock Basis Plus Debt Basis
A first-year S-corp, a year with a big equipment purchase, or a slow stretch can produce a loss on your K-1. Whether you can use it on your personal return is a basis question, not a profit question.
IRC §1366(d)(1) says the aggregate losses and deductions you take into account for a year "shall not exceed the sum of" two things: "the adjusted basis of the shareholder's stock in the S corporation" (measured after the year's income increases and after the year's distributions), and "the shareholder's adjusted basis of any indebtedness of the S corporation to the shareholder."
Notice the order built into the first item: stock basis for this test is determined with the year's increases and with distributions, so distributions lower the basis available to absorb losses. It does not matter what month the distribution was paid. A distribution in March reduces the same year's loss capacity that a loss recognized in December would use.
What happens to the part that doesn't fit? §1366(d)(2)(A) says the disallowed loss "shall be treated as incurred by the corporation in the succeeding taxable year with respect to that shareholder." The Form 7203 instructions summarize the result: "Any losses and deductions not allowed this year because of the basis limit can be carried forward indefinitely and deducted in a later year subject to the basis limit for that year."
What the carryforward does not buy you:
- It does not make the loss deductible earlier. It only preserves it.
- It does not skip the other loss limits. Per the Form 7203 instructions, the limits apply in this order: the basis limitation (Form 7203), the at-risk limitation (Form 6198), the passive activity loss limitation (Form 8582), and the excess business loss limitation (Form 461). A loss that clears basis can still stall at the next gate. See the at-risk and passive activity rules and the excess business loss limitation.
- It does not let you create basis after the fact by thinking about it later. If the S-corp stops being an S-corp, there is a limited post-termination window under §1366(d)(3), and that is a question for a CPA, not a plan.
Debt Basis: The Loan That Lets Losses Through (and the Guarantee That Doesn't)
When your stock basis runs out, a bona fide loan from you to the S-corp is the other pool that can absorb losses. Under Treas. Reg. §1.1366-2(a)(2)(i), the basis of indebtedness is your adjusted basis "in any bona fide indebtedness of the S corporation that runs directly to the shareholder," and "Whether indebtedness is bona fide indebtedness to a shareholder is determined under general Federal tax principles and depends upon all of the facts and circumstances."
A guarantee is not a loan
The rule most owners get wrong is about bank financing. Treas. Reg. §1.1366-2(a)(2)(ii) states: "A shareholder does not obtain basis of indebtedness in the S corporation merely by guaranteeing a loan or acting as a surety, accommodation party, or in any similar capacity relating to a loan." The same paragraph says that if you later pay on a loan you guaranteed, you "may increase the shareholder's basis of indebtedness to the extent of that payment." The Form 7203 instructions repeat the point: loans you guarantee or co-sign "aren't part of a shareholder's loan basis except to the extent the shareholder makes a payment on the loan guaranteed or co-signed."
So signing the personal guarantee on the company's line of credit exposes you to the bank, but it doesn't open up deductions for losses above your stock basis. Only your own money lent to the company, or your own payments on a defaulted guaranteed loan, does that.
Open account versus formal note
Shareholder advances not backed by a written note are "open account debt," and under Treas. Reg. §1.1367-2(a)(2) they are treated as a single running balance as long as the balance at year-end doesn't exceed $25,000. Above $25,000 at the close of the year, the balance is treated like a written note for later years. The Form 7203 instructions add that advances and repayments on an open account are netted at the close of the S-corp's year. A written, dated note with a stated repayment term is cleaner evidence that you made a real loan, and the difference also changes the character of any gain on repayment (covered below).
What a loan does not buy
A paper loan is not a loophole. Whether it is bona fide is a facts-and-circumstances question, so a loan that is never repaid, never documented, or routed in a circle may be recharacterized. Lending money to a company you have already decided to treat as a contribution gets you debt basis that is only as good as your ability to defend it. If the S-corp lends money back to you, a separate set of rules applies, covered in S-corp shareholder loans and imputed interest.
Restoring Debt Basis and the Loan-Repayment Trap
Here is the part that surprises people who did everything right. When losses use up your stock basis, the excess reduces your debt basis (IRC §1367(b)(2)(A)). The corporation still owes you the full face amount of the note, but for tax purposes your basis in it is lower, possibly zero.
Then the company repays you. Repayment of the face amount of a note whose basis has been reduced produces gain. The Form 7203 instructions say that "Debt evidenced by a formal note will result in capital gain, and should be reported on Form 8949 and Schedule D," while any open account debt "will result in ordinary gain and should be reported on Form 4797," and that "Gain recognized on loan repayment doesn't increase basis."
The good news is that reduced debt basis can be restored, but only in a specific way. Under IRC §1367(b)(2)(B), if there was a reduction in debt basis, "any net increase" for a later year "shall be applied to restore such reduction in basis before any of it may be used to increase the shareholder's basis in the stock of the S corporation." Treas. Reg. §1.1367-2(c)(1) defines net increase as the amount by which your share of the income items exceeds the loss, deduction, nondeductible expense, and certain distribution items for the year. The regulation also limits restoration to debt you held at the start of the year in which the net increase arises. And under §1.1367-2(c)(2), when you held more than one indebtedness at the start of the year and repay one during it, the net increase is applied first to the loan being repaid, to the extent needed to offset gain.
Put differently: a year that has income but also uses up a big carried-forward loss can have a net increase of zero. Then the loan stays at zero basis, and a repayment that year is a gain. The worked example below shows both outcomes with the same loan.
A Four-Year Worked Example
Dana is a freelance brand consultant and the sole shareholder of an S-corp (no accumulated earnings and profits, calendar year, no other shareholders). Every number below was computed with the script at the end of this section.
Facts. She contributes $10,000 of cash for stock when the company is formed.
| Year 1 | Year 2 | Year 3 (Scenario A) | Year 4 | |
|---|---|---|---|---|
| K-1 income (loss) | $60,000 | ($35,000) | $50,000 | $5,000 |
| Distributions | $45,000 | $20,000 | $0 | $40,000 |
| Loans to the S-corp (written note) | none | $10,000 | none | none |
| Repayment of note | none | none | $10,000 | none |
Year 1. Stock basis starts at $10,000. Income of $60,000 raises it to $70,000, and the $45,000 distribution brings it to $25,000. The distribution is entirely tax-free because it is below basis.
Year 2. Dana lends the company $10,000 by written note before year-end, so her debt basis is $10,000. Stock basis is $25,000. There is no income, so only the distribution applies first: $25,000 minus the $20,000 distribution leaves $5,000 of stock basis to absorb the loss. The K-1 loss is $35,000.
- Stock basis absorbs $5,000, leaving stock basis at $0.
- Debt basis absorbs the next $10,000, leaving debt basis at $0 (the company still owes her the full $10,000).
- Total allowed this year: $15,000. Suspended and carried forward: $20,000.
She generated a $35,000 loss on paper and can use $15,000 of it in Year 2. The distribution she took, which felt unrelated, cost her deduction because distributions are subtracted first.
Year 3, Scenario A. The company has K-1 income of $50,000, and repays the $10,000 note in full. The $20,000 carryforward is treated as incurred in Year 3. Net increase is $50,000 minus $20,000, which is $30,000. That is more than the $10,000 debt reduction, so debt basis is restored to $10,000 first. The repayment is then tax-free because basis equals the amount repaid. The rest of the net increase lands in stock basis: $0 plus $50,000 minus $20,000 minus the $10,000 used for restoration leaves $20,000 of stock basis at year-end.
Year 3, Scenario B (same loan, thinner income). Suppose the K-1 income were only $20,000. Net increase is $20,000 minus the $20,000 carryforward, which is $0. Nothing restores debt basis, and the note's basis stays at $0. Repaying a formal note of $10,000 with $0 basis produces a $10,000 gain, reported on Form 8949 and Schedule D, even though the company was profitable that year. The Form 7203 instructions treat gain on a formal note as capital gain; whether it is long-term or short-term depends on how long you held the note, and a loan made late in Year 2 and repaid in Year 3 may well be short-term.
Year 4. Using Scenario A, Dana starts with $20,000 of stock basis, K-1 income is $5,000, and she takes a $40,000 distribution. Basis before the distribution is $25,000. The first $25,000 is tax-free. The remaining $15,000 is gain, reported on Form 8949 and Schedule D, and it does not raise basis, so stock basis is $0 going into Year 5.
// Every figure above is computed here, not typed.
let stock = 10000 + 60000 - 45000; // Year 1 ending stock basis
const preLoss = stock - 20000; // Year 2 after distributions
const loss = 35000, debt = 10000;
const stockAbsorbs = Math.min(loss, preLoss);
const debtAbsorbs = Math.min(loss - stockAbsorbs, debt);
const carry = loss - stockAbsorbs - debtAbsorbs;
const netA = 50000 - carry; // Year 3, Scenario A
const stockA = 0 + 50000 - carry - Math.min(netA, debt);
const netB = 20000 - carry; // Year 3, Scenario B
const gainB = debt - Math.min(Math.max(netB, 0), debt);
const y4Pre = stockA + 5000;
console.log({ stock, preLoss, stockAbsorbs, debtAbsorbs,
allowed: stockAbsorbs + debtAbsorbs, carry, netA, stockA,
netB, gainB, y4Pre, y4Gain: 40000 - y4Pre });
// stock 25000, preLoss 5000, stockAbsorbs 5000, debtAbsorbs 10000,
// allowed 15000, carry 20000, netA 30000, stockA 20000,
// netB 0, gainB 10000, y4Pre 25000, y4Gain 15000
What the example deliberately leaves out. It uses a single ordinary loss item, so no pro-rata allocation among loss types is needed (the Form 7203 instructions describe one for the multi-item case). It states no tax rates and no dollar tax cost, because the value of a deduction or the cost of a gain depends on the owner's whole household income, and the character of the Year 4 gain depends on how long the stock was held. It also ignores the at-risk, passive, and excess business loss tests, which would apply to the $15,000 after the basis test.
Common Mistakes to Avoid
- Treating the K-1 as proof of deductibility. The K-1 reports your share of the loss. Basis decides how much of it you can use this year.
- Taking distributions in a loss year without checking basis. Distributions come off basis before losses are applied, so a distribution can shrink a loss deduction without any tax showing up on the distribution itself.
- Assuming a bank-loan guarantee creates debt basis. Under Treas. Reg. §1.1366-2(a)(2)(ii), it doesn't, unless you actually make payments on the loan.
- Lending money after year-end and expecting it to count for the prior year. Basis is generally figured at the end of the S-corp's tax year.
- Repaying your own loan without checking its basis. If losses reduced debt basis, a repayment can create capital gain (formal note) or ordinary gain (open account debt), even in a profitable year.
- Mixing personal and company money without records. Undocumented advances sit in open account debt, are netted at year-end, and are hard to defend as bona fide if someone asks.
- Treating the excess distribution gain as automatically long-term. The character follows the holding period of the stock, so confirm it before budgeting for a particular rate.
- Skipping Form 7203 because you "didn't have a loss." Per the instructions, a non-dividend distribution or a loan repayment is enough to require the form.
- Assuming the S-corp's profit and your basis are the same number. Prior-year distributions, prior-year suspended losses, and loan history all separate them.
How CentSense Helps
Basis math is only as good as the records behind it, and the records are where freelancers lose track. CentSense helps with the inputs:
- Scan receipts for business expenses with AI so that corporate deductions, and therefore K-1 income or loss, rest on documented numbers
- Keep owner-paid business costs separate from personal spending throughout the year, so reimbursements and advances don't blur into undocumented draws
- Tag equipment purchases and large one-time expenses by date, which is where year-end loss swings, and the basis questions that follow, usually start
- Log business mileage with the correct rate for each half of 2026 so reimbursement paperwork matches
- Export a CPA-ready CSV so the person preparing Form 7203 starts from categorized records instead of a shoebox
CentSense does not calculate stock basis or debt basis for you, and it does not replace the written notes, board minutes, or the Form 7203 worksheet. It gives your CPA clean inputs.
Related reading: S-Corp Election for Freelancers, S-Corp Reasonable Salary, Accountable Plan for S-Corp Owners, S-Corp Shareholder Loans and Imputed Interest, and S-Corp Late Election Relief.
Authoritative References
- 26 U.S.C. §1366 — Pass-thru of items to shareholders, including §1366(d) (losses limited to stock and debt basis, indefinite carryover) (Cornell LII)
- 26 U.S.C. §1367 — Adjustments to basis of stock of shareholders, etc., including §1367(b)(2) (reduction and restoration of debt basis) (Cornell LII)
- 26 U.S.C. §1368 — Distributions, including §1368(b) (distributions from an S corporation with no earnings and profits) and §1368(c) (with earnings and profits) (Cornell LII)
- 26 CFR §1.1366-2 — Limitations on deduction of passthrough items of an S corporation to shareholders, including §1.1366-2(a)(2) (basis of indebtedness and guarantees) (Cornell LII)
- 26 CFR §1.1367-2 — Adjustments to basis of indebtedness to shareholder, including open account debt and restoration of basis (Cornell LII)
- IRS — Instructions for Form 7203, S Corporation Shareholder Stock and Debt Basis Limitations (Rev. 12/2022)
- IRS — About Form 7203
Stop finding out your basis when a distribution or a loss is already on the return. Start a free CentSense account, scan every business receipt the day you get it, keep owner-paid costs separate from personal spending, and hand your CPA a clean, categorized export at year-end. The free tier includes 10 AI receipt scans a month, no credit card required, and the Solo plan is $5/month for unlimited scans, mileage tracking, and a CPA-ready CSV export. Start free →
This guide is general education for U.S. freelancers who own an S-corporation. It is not personalized tax advice. Basis calculations depend on your full history of contributions, loans, income, distributions, and losses, and on whether the corporation has accumulated earnings and profits, so have a CPA or EA confirm your figures before relying on them.
Related reads
Continue learning with more tax and expense guides for freelancers.
2026-10-04
Fuel Tax Credit (Form 4136) for Self-Employed Freelancers: Off-Highway Business Fuel and Schedule C Line 6 (2026)
2026-10-04
Land Surveyor Tax Deductions: 2026 Schedule C Guide for Self-Employed Licensed Surveyors (PLS)
2026-10-04
1099 Contract Rate vs. W-2 Salary: What Hourly Rate Actually Matches a Job Offer (2026 Break-Even Math)
2026-10-04
Bringing Your Spouse on a Business Trip: What You Can Deduct and What Records Prove It (2026 Freelancer Guide)
Compare alternatives
See how CentSense stacks up to other expense and receipt tools for freelancers.
- Keeper Tax alternative
- QuickBooks Self-Employed alternative
- FlyFin alternative
- Expensify alternative
- Shoeboxed alternative
- Veryfi alternative
- Dext alternative
- ReceiptsAI alternative
- Smart Receipts alternative
- EasyExpense alternative
- Zoho Expense alternative
- Rydoo alternative
- Fyle alternative
- Navan alternative
- Expense Tracker 365 alternative
- Paylocity alternative
- Wave Receipts alternative
- QuickBooks Online alternative
- Xero alternative
- See all alternatives →