Skip to main content

Lending Money to Your Own S Corporation: How Stock Basis, Debt Basis, and Loan Paperwork Decide Whether Your Losses Are Deductible

Published 13 min readMike ThriftMike Thrift
Lending Money to Your Own S Corporation: How Stock Basis, Debt Basis, and Loan Paperwork Decide Whether Your Losses Are Deductible

You wired $40,000 of your own savings into your S corporation to cover payroll during a slow stretch. At year-end your Schedule K-1 shows a $30,000 loss — and your tax preparer tells you that you cannot deduct most of it. The money is real, the loss is real, but your deduction is capped by something you have never tracked: your basis.

This is one of the most expensive surprises in small-business tax. A K-1 loss is not automatically deductible. Before a single dollar of pass-through loss reaches your personal return, it must survive four separate limitations, applied in order: stock and debt basis, at-risk, passive activity, and excess business loss. Basis comes first, and for S corporation shareholders it is entirely your job to track — the corporation will not do it for you.

Why Your K-1 Loss Is Not Automatically Deductible

An S corporation passes its income, losses, deductions, and credits through to shareholders, who report them on their personal returns. That pass-through is the main reason owners elect S status: corporate losses can shelter other income.

But the K-1 only reports your share of the corporation's items. It does not tell you how much loss you may claim. The IRS applies four gates in sequence, and each must be passed before you reach the next:

  1. Stock and debt basis limitation. You can only deduct losses up to your adjusted basis in S corporation stock plus your adjusted basis in debt the corporation owes directly to you.
  2. At-risk limitation. You must be economically at risk for the amount (generally, your cash and property contributions plus recourse debt you are personally liable for).
  3. Passive activity limitation. If you do not materially participate, losses generally can only offset passive income.
  4. Excess business loss limitation. Even then, total business losses above the annual inflation-adjusted threshold are carried forward rather than deducted currently.

Most S corporation owners who actively run their business clear gates two through four without trouble. Gate one — basis — is where deductions die. And within gate one, the distinction that matters most is stock basis versus debt basis.

Stock Basis vs. Debt Basis: Two Buckets, Different Rules

Think of basis as two separate buckets. Losses drain them; income refills them. But the buckets do not behave identically.

Stock basis: your ownership investment

Your stock basis starts with what you paid for your shares (or the value of property you contributed for them). Each year it moves with the corporation's results:

  • Increased by: additional capital contributions, your share of income items (including tax-exempt income), and excess depletion.
  • Decreased by: distributions to you, your share of loss and deduction items, and nondeductible expenses.

Two rules make stock basis special. First, distributions reduce stock basis only — never debt basis. A non-dividend distribution is tax-free to you to the extent of your stock basis; anything beyond that is generally capital gain. Second, losses reduce stock basis first, before they touch debt basis.

Debt basis: what the corporation owes you directly

Debt basis is your adjusted basis in bona fide debt the S corporation owes directly to you. It starts at the face amount you lent and is reduced by pass-through losses only after your stock basis hits zero. On the way back up, the ordering reverses: income items restore debt basis first (up to the loan's face amount) before they rebuild stock basis.

That ordering creates the repayment trap covered below: if the corporation repays a loan after losses have driven its debt basis down, part of the repayment is taxable gain.

Who tracks all of this? You do.

The S corporation reports your K-1 items but does not track your personal basis. That responsibility sits with you, the shareholder, and since 2021 the IRS has given you a form for it: Form 7203, S Corporation Shareholder Stock and Debt Basis Limitations. You generally must file it whenever you claim a loss or deduction, receive a distribution, dispose of stock, or receive a loan repayment from the corporation. Reconstructing years of basis from scratch is painful, which is why tracking it annually — alongside your bookkeeping — pays for itself many times over.

What Actually Creates Debt Basis

Here is the rule in one sentence: you get debt basis only for bona fide debt the S corporation owes directly to you, funded by your own actual economic outlay.

Each word carries weight:

  • Bona fide debt. The advance must genuinely be a loan, not a disguised capital contribution. Courts and the IRS weigh factors like a written note, a fixed maturity date, a stated interest rate, a repayment schedule, collateral, and whether repayments are actually made. An undocumented cash advance with no terms looks like equity, and the IRS may reclassify it as a capital contribution — which lands in stock basis instead of debt basis.
  • Owed directly to you. The corporation must owe the money to you personally. A bank loan to the corporation does not give you debt basis, even if the business could never have borrowed without you.
  • Actual economic outlay. The funds must leave your pocket in a way that makes you materially poorer. Shuffling paper between entities you control, without real money moving from you to the corporation, does not create basis.

One related point the IRS states explicitly: if you claim to have lent or contributed substantial funds, you should be able to show you had the financial means to do so. A $200,000 shareholder loan from someone with no visible source of funds invites questions.

Guarantees Do Not Count — Even If the Bank Required Yours

This is the single most misunderstood rule in S corporation basis, so it deserves its own section: guaranteeing your corporation's loan gives you zero debt basis.

If your S corporation borrows $150,000 from a bank and you personally guarantee the note, the debt runs from the corporation to the bank — not to you. The regulations are explicit that merely guaranteeing a loan, or acting as surety or accommodation party, creates no basis. The same applies if you pledge personal assets as collateral: until you actually pay the lender out of your own funds, you have made no economic outlay and hold no debt basis.

If you do have to pay on the guarantee, that payment itself can become debt basis. But the guarantee standing alone, no matter how essential to the loan, is worth nothing for basis purposes.

The back-to-back loan exception that actually works

There is a legitimate way to turn bank financing into debt basis: borrow the money yourself, then lend the proceeds to your S corporation. If you take a $100,000 personal loan from the bank and then advance $100,000 to the corporation under a separate shareholder note, the corporation owes you directly and you have made a real outlay. The two loans must be genuinely separate — your note to the bank and the corporation's note to you — with money actually flowing through your hands. Sloppy netting, where the bank wires funds straight to the corporation and everyone agrees to call it a shareholder loan, fails the direct-indebtedness test.

Document Your Advances or Watch Them Become Equity

Every dollar you advance to your S corporation sits in one of three places on the tax map: a formal loan, open account debt, or a capital contribution. The paperwork you create — or skip — decides which one, and the consequences differ.

Formal loans: the gold standard

A shareholder advance backed by a separate written instrument is the cleanest form of debt. To survive scrutiny, each loan should have:

  • A signed promissory note stating principal, interest rate, maturity date, and repayment terms.
  • A market-rate (or at least adequate) interest rate. Interest-free or below-market loans can trigger imputed interest rules, and a zero rate undermines the claim that the advance is real debt.
  • A fixed repayment schedule — and actual payments made on it. A note that is never serviced looks like equity wearing a costume.
  • Corporate records to match: board authorization in the minutes, a dedicated liability account (such as Loans from Shareholder) on the general ledger, and interest expense actually booked and paid.
  • Arm's-length behavior. If the corporation pays outside vendors on time but lets your note gather dust for years, the paper trail contradicts the loan story.

Open account debt: the $25,000 tripwire

Not every advance arrives with a signed note. Owners routinely pay a vendor here and cover payroll there, letting the corporation run a tab. The regulations have a category for this: open account debt — shareholder advances not evidenced by separate written instruments.

Open account debt gets simplified treatment: all advances and repayments are netted and treated as a single indebtedness, which makes tracking easy. But there is a ceiling. If the aggregate outstanding principal of your open account debt exceeds $25,000 at the close of the corporation's tax year, the simplified treatment ends. From the next year on, the balance is treated like debt evidenced by a separate written instrument — with per-loan basis tracking — even though no note exists.

Two practical consequences follow. First, once you cross the threshold you lose netting, so each advance needs its own basis accounting. Second, the tax character of any gain on repayment differs: gain from repaying open account debt is generally ordinary income, while gain from repaying a formal note is generally capital gain, because the note itself is treated as a capital asset. If your running tab is approaching $25,000 near year-end, that is the moment to paper the balance with a real note — or accept the stricter regime deliberately.

The Repayment Trap: Getting Your Own Money Back Can Be Taxable

Suppose you lend your S corporation $50,000. In a rough year, a $50,000 pass-through loss wipes out your stock basis and then reduces your debt basis to zero — you deducted the loss, so the basis had to go somewhere. The next year the business recovers and repays your $50,000 loan in full.

How much of that repayment is taxable? The full $50,000. Repayment of a reduced-basis debt produces gain equal to the repayment amount minus your remaining debt basis — here, $50,000 minus zero. You are being taxed on the return of money you already paid tax on when you earned it, because you already harvested the tax benefit through the loss deduction. There is no double taxation in economic terms, but the timing stings: cash you expected tax-free arrives with a tax bill attached.

Three ways to defuse the trap:

  1. Let income rebuild basis before repaying. Remember the ordering rule: pass-through income restores debt basis first, up to the loan's face amount. If the corporation earns $50,000 before it repays you, your debt basis is back to $50,000 and the repayment is tax-free.
  2. Repay gradually. Partial repayments spread the gain across years instead of bunching it into one.
  3. Plan the loan's life at the front end. If you expect early-year losses followed by recovery, consider contributing some funds as equity (stock basis) rather than debt, since distributions against stock basis are tax-free and stock basis has no repayment-gain trap. The trade-off is that equity cannot be pulled back as easily as a maturing note.

A Recordkeeping Checklist That Survives an Audit

IRS examiners know exactly where to look: the general ledger accounts recording shareholder payables, the loan agreements behind them, and whether the named creditor on each note is really you. Make their job boring with this routine:

  • One liability account per formal loan on the corporate books — never commingle shareholder loans with trade payables or credit lines.
  • A copy of every signed note, with amendments, kept with the year's tax file.
  • A running basis schedule for each shareholder, updated annually and reconciled to Form 7203: beginning stock and debt basis, plus income items, minus distributions and losses, equals ending basis.
  • Interest actually charged and paid, reported as interest income on your personal return and interest expense on the corporate return.
  • Minutes authorizing each loan, especially for multi-shareholder corporations, where each shareholder's advances need separate documentation.
  • Bank proof of the money trail — your transfer to the corporation, and the corporation's repayments to you — so the economic outlay is undeniable.

Where your bookkeeping earns its keep

None of this works without clean books. Basis tracking lives or dies on whether shareholder advances hit the right ledger accounts in the right periods. A plain-text ledger makes this discipline almost automatic: every advance is an explicit transaction with a date and amount, the full history is version-controlled so last year's basis schedule can always be re-derived, and the per-loan balances your preparer needs for Form 7203 are a query rather than an excavation. If you already keep your business finances in Beancount.io, shareholder loans are just another set of accounts — and the visual dashboards make it easy to watch loan balances against the $25,000 open-account threshold through the year instead of discovering the breach at tax time.

Five Mistakes That Cost S Corporation Owners Real Money

  1. Assuming the K-1 loss is deductible. Basis comes first. A $60,000 K-1 loss with $10,000 of combined stock and debt basis means $50,000 suspended — carried forward, not lost, but useless until you build basis.
  2. Counting a guarantee as basis. Co-signing the corporate line of credit feels like putting yourself on the line, and economically it is — but for tax basis it is zero until you actually pay.
  3. Running undocumented advances past $25,000. The open-account ceiling is measured at year-end. A running tab that drifts over it converts your simple netting into per-loan tracking, retroactively complicating every advance.
  4. Repaying reduced-basis debt without planning. Every dollar repaid above remaining debt basis is gain. Check the basis schedule before authorizing the wire, not after.
  5. Letting the corporation's books and your basis schedule disagree. If the balance sheet shows a shareholder loan but the note names someone else as creditor — or no note exists — the amount may add nothing to your basis. Reconcile the two at every year-end.

Keep Your Shareholder Loans Audit-Ready From Day One

Lending to your own S corporation is one of the most useful tools a small-business owner has — but only the documented, directly-owed, actually-funded kind creates the debt basis that unlocks loss deductions. Track stock and debt basis separately, paper every advance, and never mistake a guarantee for a loan. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.

Share this article

Source: https://beancount.io/blog/2026/09/14/s-corporation-shareholder-loans-stock-debt-basis-documentation-guide

Published: September 14, 2026