# Stock Basis

Track stock cost basis for accurate investment accounting

44 posts [View all tags](https://beancount.io/blog/tags) [Back to All Posts](https://beancount.io/blog)

September 14, 2026 13 min read

## [Lending Money to Your Own S Corporation: How Stock Basis, Debt Basis, and Loan Paperwork Decide Whether Your Losses Are Deductible](https://beancount.io/blog/2026/09/14/s-corporation-shareholder-loans-stock-debt-basis-documentation-guide)

An S corporation K-1 loss is deductible only up to your stock basis plus debt basis, and a personal guarantee of a corporate bank loan creates zero debt basis. This guide covers the two basis buckets, the $25,000 open-account-debt threshold, the repayment gain trap, and the documentation that keeps a shareholder advance from being reclassified as equity.

Mike Thrift

s-corporation s-corp stock-basis

September 11, 2026 12 min read

## [Un-Electing S Corporation Status: How to Revoke Your S Election and What It Costs](https://beancount.io/blog/2026/09/11/un-electing-s-corporation-status-revoking-election-consent-five-year-guide)

Revoking an S election takes a signed statement from shareholders holding more than 50% of shares, received by March 15 for a January 1 effective date, and it bars re-election for five tax years. This guide covers the required statement contents, mid-year short-year splits, the Section 1374 built-in gains tax on appreciated assets, and the post-termination window for tax-free AAA distributions.

Mike Thrift

s-corporation c-corporation entity-conversion

September 10, 2026 10 min read

## [The S Corporation AAA: How the Accumulated Adjustments Account Decides Whether Your Distributions Come Out Tax-Free](https://beancount.io/blog/2026/09/10/s-corporation-aaa-accumulated-adjustments-account-distributions-tax-free-guide)

An S corporation distribution is tax-free only to the extent of the Accumulated Adjustments Account once the company carries C-corporation earnings and profits. This guide covers what moves AAA up and down, the four-step distribution ordering rules, a worked $40,000 example with two opposite outcomes, and five bookkeeping mistakes that turn owner draws into taxable dividends.

Mike Thrift

s-corporation owner-distributions stock-basis

May 19, 2026 10 min read

## [Form 1099-DIV Box 3: The Return-of-Capital Basis Trap for REIT, BDC, and MLP Investors](https://beancount.io/blog/2026/05/19/form-1099-div-box-3-nondividend-distributions-return-of-capital-basis-trap-investors-reits-bdcs-mlps-mutual-funds-section-301c3-form-8949-broker-reconciliation-guide)

A practical walkthrough of Form 1099-DIV Box 3 nondividend distributions — how return-of-capital payments from REITs, BDCs, MLPs, and managed-distribution funds reduce your cost basis under IRC Section 301(c)(2), convert into immediate capital gain under 301(c)(3) once basis hits zero, and what records you need to keep so the IRS matching program never catches you short.

Mike Thrift

tax tax-compliance form-8949

May 19, 2026 12 min read

## [Section 1059 Extraordinary Dividend Basis Reduction: The Corporate Shareholder Trap That Turns Tax-Free Dividends Into Immediate Capital Gain](https://beancount.io/blog/2026/05/19/section-1059-extraordinary-dividend-basis-reduction-corporate-shareholders-5-percent-preferred-10-percent-common-2-year-holding-dividend-stripping-strategic-acquisition-planning-guide)

Section 1059 reduces a corporate shareholder's stock basis by the nontaxed portion of an extraordinary dividend — 5% threshold for preferred, 10% for common — when received within two years of acquisition, with excess immediately taxed as capital gain. This guide covers the thresholds, the 85-day and 365-day aggregation rules, the FMV election, the non-pro-rata redemption exceptions, and the lot-level bookkeeping that keeps corporate finance teams out of audit trouble.

Mike Thrift

tax-planning tax-compliance c-corporation

May 17, 2026 10 min read

## [Form 1099-B Cost Basis: Reconciling Covered and Noncovered Securities on Form 8949](https://beancount.io/blog/2026/05/17/form-1099-b-cost-basis-reconciliation-covered-noncovered-securities-box-1e-box-5-form-8949-adjustment-code-b-avoid-double-tax-guide)

Brokers often report a wrong or zero cost basis on Form 1099-B, especially for RSUs and ESPP shares. This guide explains covered vs. noncovered securities, Box 1e and Box 5, and how Form 8949 adjustment code B corrects basis so you do not pay tax twice on the same income.

Mike Thrift

tax capital-gains form-8949

May 17, 2026 14 min read

## [Form 1099-B Cost Basis Reconciliation: How to Avoid Paying Tax Twice on the Same Dollar](https://beancount.io/blog/2026/05/17/form-1099-b-cost-basis-reconciliation-covered-vs-noncovered-securities-box-1e-box-5-form-8949-adjustment-codes-avoid-paying-tax-twice-guide)

Form 1099-B Box 1e shows your broker's cost basis, but Box 5 determines whether the IRS sees it. A working guide to covered vs. noncovered securities, Form 8949 adjustment codes (B, W, Q, O, T), and the RSU/ESPP basis corrections that prevent double-taxation.

Mike Thrift

tax form-8949 capital-gains

May 17, 2026 10 min read

## [MLP K-1 Tax Issues for Individual Investors: UBTI, Section 751 Recapture, and Multi-State Filings](https://beancount.io/blog/2026/05/17/mlp-k-1-tax-issues-individual-investors-ubti-ira-section-751-recapture-multi-state-nonresident-filings-guide)

A Master Limited Partnership pays cash quarterly but issues a Schedule K-1, not a 1099. Most distributions reduce your cost basis instead of being taxed, holding units in an IRA can trigger UBTI and a Form 990-T once income exceeds $1,000, and selling converts depreciation into ordinary income under Section 751 — taxed up to 37%.

Mike Thrift

tax tax-compliance partnerships

May 17, 2026 14 min read

## [How the OBBBA's Tiered QSBS Exclusion Changes the Math for Founders, Employees, and Angels](https://beancount.io/blog/2026/05/17/obbba-section-1202-qsbs-15-million-cap-tiered-50-75-100-percent-exclusion-three-four-five-year-holding-founders-employees-angels-guide)

The OBBBA raised the Section 1202 QSBS cap to $15 million, lifted the gross-asset ceiling to $75 million, and replaced the five-year cliff with a tiered 50/75/100 percent exclusion at three, four, and five years — but only for stock issued after July 4, 2025.

Mike Thrift

tax tax-planning startup

May 16, 2026 15 min read

## [Section 1377(a)(2) Closing-of-Books Election: How S Corporations Allocate Pass-Through Income When a Shareholder Leaves Midyear](https://beancount.io/blog/2026/05/16/section-1377-a-2-s-corporation-closing-of-books-election-departing-shareholder-midyear-pass-through-allocation-guide)

Section 1377(a)(2) lets an S corporation split its tax year when a shareholder fully exits, allocating pass-through items to the period each owner actually held stock. This guide covers when the election is available, who must consent, the 1.1368-1(g) alternative, and the bookkeeping it demands.

Mike Thrift

s-corp s-corporation tax-planning

May 16, 2026 14 min read

## [The 30-Day Decision That Can Save Founders Millions: A Plain-English Guide to the Section 83(b) Election](https://beancount.io/blog/2026/05/16/section-83b-election-founders-early-employees-30-day-window-form-15620-restricted-stock-qsbs-holding-clock-vesting-guide)

A Section 83(b) election lets founders and early employees pay ordinary income tax today on the full value of restricted stock instead of at each vest. Filed within 30 days on IRS Form 15620, it can convert millions of phantom ordinary income into long-term capital gain and start the QSBS holding clock on day one.

Mike Thrift

tax tax-planning startup

May 15, 2026 11 min read

## [Give It Now or Leave It Later? The Basis Trap That Quietly Costs Families Hundreds of Thousands in Capital Gains Tax](https://beancount.io/blog/2026/05/15/section-1015-carryover-basis-lifetime-gifts-vs-section-1014-stepped-up-basis-death-dual-basis-rule-15-million-exemption-2026-guide)

Lifetime gifts under IRC Section 1015 carry over the donor's basis, while inheritance under Section 1014 steps it up to fair market value at death — a difference that can shift a family's after-tax outcome by six figures on a single appreciated position under the 2026 $15 million federal exemption.

Mike Thrift

tax tax-planning estate-planning

[Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F) [Documentation](https://beancount.io/docs)

## Where to look next

- [Sitemap](https://beancount.io/sitemap.xml) - all pages with hreflang alternates
- [LLMs index](https://beancount.io/llms.txt) - curated links for AI agents (also /llms-full.txt for full docs)
- [Documentation](https://beancount.io/docs) - every doc is also available as text/markdown via .md suffix or Accept negotiation
- [REST API reference](https://beancount.io/docs/api-reference) - interactive endpoints, schemas, authentication, and code samples
- [OpenAPI spec](https://beancount.io/openapi.json) - OpenAPI 3.1 spec for this website's public content endpoints; the product contract for ledger operations is at https://beancount.io/api-gateway/v1/openapi.json
- [GraphQL](https://beancount.io/graphql) - public, read-only content API over the blog and research logs (no credentials, no ledger data): 12 query fields over 23 types
- [MCP server](https://beancount.io/mcp) - Model Context Protocol at https://beancount.io/api-gateway/mcp
