# 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)

May 15, 2026 16 min read

## [Section 302 Stock Redemptions: Sale vs. Dividend Treatment in Closely-Held C Corporations](https://beancount.io/blog/2026/05/15/section-302-stock-redemption-c-corporation-sale-vs-dividend-substantially-disproportionate-complete-termination-section-318-attribution-guide)

A practical guide to Section 302 stock redemptions in closely-held C corporations — when a buyback gets capital gain treatment versus dividend treatment, how Section 318 family attribution disqualifies most family redemptions, and how the four 302(b) tests plus the 302(c)(2) waiver preserve sale treatment.

Mike Thrift

tax tax-planning c-corporation

May 15, 2026 10 min read

## [Section 302 Stock Redemption: How Closely-Held C Corporations Avoid Surprise Dividend Treatment](https://beancount.io/blog/2026/05/15/section-302-stock-redemption-sale-vs-dividend-treatment-closely-held-c-corporations-three-tests-section-318-attribution-family-waiver-partial-liquidation-guide)

Section 302 of the Internal Revenue Code decides whether a closely-held C corporation's stock redemption is taxed as a capital sale or a full-amount dividend. This guide explains the three Section 302(b) tests, the Section 318 attribution traps that ensnare family-owned companies, the 10-year family-attribution waiver, and the partial-liquidation safe harbor under Section 302(b)(4).

Mike Thrift

c-corp tax-planning equity-instruments

May 14, 2026 10 min read

## [The $2 Million Mistake: Why Gifting Appreciated Stock to Your Kids Can Be Worse Than Doing Nothing](https://beancount.io/blog/2026/05/14/section-1015-carryover-basis-lifetime-gifts-stepped-up-basis-death-section-1014-dual-basis-rule-appreciated-assets-estate-planning-guide)

A practical guide to Section 1015 carryover basis versus Section 1014 stepped-up basis, the dual basis trap for depreciated assets, and the 2026 decision framework for whether to gift appreciated property now or hold until death under the permanent $15 million exemption.

Mike Thrift

estate-planning tax-planning capital-gains

May 13, 2026 12 min read

## [The IDGT Installment Sale Playbook: Freezing Estate Value, Burning Through Income Taxes, and Surviving Rev. Rul. 2023-2](https://beancount.io/blog/2026/05/13/idgt-installment-sale-grantor-trust-estate-freeze-seed-gift-afr-promissory-note-rev-rul-2023-2-basis-guide)

How the Intentionally Defective Grantor Trust (IDGT) installment sale freezes estate value at today's AFR, why Revenue Ruling 2023-2 ended the basis-step-up shortcut for grantor trust assets, and the formalities that decide audit outcomes.

Mike Thrift

estate-planning trust tax-planning

May 13, 2026 13 min read

## [The ISO AMT Trap in 2026: How Tech Employees Get Hit With Six-Figure Tax Bills on Stock They Can't Sell](https://beancount.io/blog/2026/05/13/incentive-stock-option-iso-amt-trap-form-6251-qualifying-disposition-bargain-element-section-422-tech-employees-phantom-tax-2026-guide)

Exercising and holding ISOs adds the bargain element to AMTI on Form 6251 Line 2i, which can produce a six-figure tax bill before a single share is sold. A 2026 guide to the tightened AMT exemption phase-out ($500K single / $1M MFJ at 50¢ per dollar), the qualifying disposition rules under IRC §422, and the planning moves — AMT crossover exercise, §83(b) early exercise, same-year disqualifying sale, and multi-year laddering — that keep tech employees out of the trap.

Mike Thrift

tax tax-planning equity-instruments

May 13, 2026 13 min read

## [ISO AMT in 2026: Bargain Element, Form 6251 Line 2i, and the OBBBA Phase-Out Cliff](https://beancount.io/blog/2026/05/13/iso-amt-trap-2026-obbba-bargain-element-form-6251-line-2i-qualifying-disposition-tech-employees-guide)

Under OBBBA, the 2026 AMT exemption phases out at $500K single / $1M joint with a 50-cent rate, doubling the stealth bracket on ISO exercises. Here is exactly how the bargain element flows into Form 6251 line 2i, when a same-year disqualifying disposition eliminates the AMT adjustment, and how to plan exercises to avoid a six-figure phantom-income tax bill.

Mike Thrift

equity-instruments tax-planning stock-basis

May 13, 2026 12 min read

## [S-Corp Basis, Form 7203, and the Phantom Distribution Trap: A Section 1366(d) Guide](https://beancount.io/blog/2026/05/13/s-corporation-shareholder-stock-debt-basis-section-1366d-form-7203-suspended-losses-phantom-distributions-guide)

Section 1366(d) caps S-corporation loss deductions at stock basis plus direct shareholder debt, and Form 7203 is how the IRS verifies the math. A working guide to suspended losses, phantom capital gains on distributions, the $25,000 open-account debt rule, why personal guarantees do not create basis, and how the Regulation 1.1367-1 ordering rules decide which losses survive each year.

Mike Thrift

s-corp s-corporation stock-basis

May 13, 2026 14 min read

## [Section 1259 Constructive Sales: How Hedging Appreciated Stock Can Trigger a Phantom Tax Bill](https://beancount.io/blog/2026/05/13/section-1259-constructive-sales-short-against-the-box-equity-swaps-collars-prepaid-variable-forwards-appreciated-stock-guide)

Section 1259 treats short-against-the-box trades, equity swaps, and tight collars on appreciated stock as constructive sales — taxable today, even with no proceeds. Covers the variable prepaid forward workaround, the 30-day closing exception, and the related-party trap.

Mike Thrift

tax-planning capital-gains equity-instruments

May 13, 2026 13 min read

## [Section 351 Tax-Free Incorporation: The 80% Control Test, Boot Traps, and QSBS for Founders](https://beancount.io/blog/2026/05/13/section-351-tax-free-incorporation-playbook-80-percent-control-test-boot-liabilities-traps-founders-qsbs-guide)

Section 351 lets founders incorporate without immediate tax only if the transferor group owns 80% of voting power and every non-voting class right after the exchange. Miss the control test, contribute services instead of property, or assume liabilities greater than basis, and the gain surfaces anyway. A practical playbook covering boot, the Section 357(c) trap, basis carryover under Sections 358 and 362, and how to preserve QSBS eligibility under Section 1202.

Mike Thrift

incorporation c-corp tax-planning

May 13, 2026 11 min read

## [Section 368 Tax-Free Reorganizations: How Type A Mergers, Type B Stock Swaps, and Type C Asset Deals Defer Tax in Strategic M\&A](https://beancount.io/blog/2026/05/13/section-368-tax-free-reorganizations-type-a-mergers-type-b-stock-swaps-type-c-asset-acquisitions-strategic-m-a-tax-deferral-guide)

Section 368 defines seven reorganization types (A through G) that defer corporate and shareholder tax in M\&A. This guide covers the 40% Continuity of Interest test, Type A statutory mergers, Type B stock-for-stock swaps with the 80% control requirement, Type C asset deals, and forward/reverse triangular merger structures with their consideration limits.

Mike Thrift

tax tax-planning mergers-and-acquisitions

May 13, 2026 10 min read

## [Section 83(i) Explained: A Five-Year Tax Deferral for Private-Company RSUs and NSOs](https://beancount.io/blog/2026/05/13/section-83i-tax-deferral-private-company-stock-qualified-employees-5-year-rsu-options-pre-ipo-startup-election-guide)

Section 83(i) lets qualified rank-and-file employees at eligible private companies defer federal income tax on RSU vests and NSO exercises for up to five years, but FICA is still due at vesting, the 30-day election window is unforgiving, and the 80 percent broad-based grant rule keeps most startups from offering it.

Mike Thrift

tax tax-planning tax-compliance

May 11, 2026 14 min read

## [Section 1045 QSBS Rollover: How Founders Defer Capital Gains by Reinvesting Within 60 Days](https://beancount.io/blog/2026/05/11/section-1045-qsbs-rollover-founders-early-investors-defer-capital-gains-60-day-reinvestment-guide)

Section 1045 lets non-corporate taxpayers defer capital gains from a QSBS sale by reinvesting proceeds into new qualifying small business stock within 60 days. After the 2025 OBBBA expansion (75M gross assets cap, tiered 50/75/100 percent exclusion at 3/4/5 years), the rollover can convert a missed Section 1202 exclusion into a deferred, and potentially excluded, gain.

Mike Thrift

tax-planning capital-gains startup

[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
