# Capital Gains

Track and report capital gains from investments

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

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 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 14 min read

## [Section 754 Election and 743(b) Basis Adjustments: How Partnerships Step Up Inside Basis When a Partner Buys In or Dies](https://beancount.io/blog/2026/05/13/section-754-election-743b-basis-adjustments-partnership-inside-outside-basis-step-up-partner-death-buy-in-form-15254-guide)

A Section 754 election triggers a 743(b) inside-basis step-up when a partner dies, sells, or is bought in — preventing heirs and incoming partners from paying tax twice on the same appreciation. This guide covers 743(b) and 734(b) mechanics, Section 755 allocation across asset classes, the substantial built-in loss rule, Form 15254 revocation, and when the administrative cost outweighs the benefit.

Mike Thrift

partnerships tax-planning estate-planning

May 12, 2026 14 min read

## [Section 83(b) Election: The 30-Day Window That Saves Founders From a Phantom Tax Bill](https://beancount.io/blog/2026/05/12/section-83b-election-restricted-stock-founder-equity-30-day-filing-window-form-15620-phantom-tax-bill-guide)

How the IRS Section 83(b) election converts phantom ordinary income on unvested startup stock into long-term capital gains, what the new Form 15620 online portal requires, and when filing is the wrong move.

Mike Thrift

tax-planning tax-compliance equity

May 11, 2026 12 min read

## [Earnouts in M\&A: Bridging the Valuation Gap Without Walking Into a Lawsuit](https://beancount.io/blog/2026/05/11/earnouts-ma-contingent-purchase-price-valuation-gap-section-453-installment-sale-ebitda-revenue-litigation-traps-guide)

About one third of 2024 private-target M\&A deals included an earnout, and median earnout potential rose to roughly 43% of the closing payment. This guide explains contingent purchase price structure, Section 453 installment-sale tax mechanics, the compensation-versus-purchase-price trap, and the recurring drafting mistakes behind six of the last seven major Delaware decisions favoring sellers.

Mike Thrift

mergers-and-acquisitions business-valuation tax

May 11, 2026 12 min read

## [Form 8594 and Section 1060: Allocating Purchase Price Across Asset Classes I–VII in a Business Sale](https://beancount.io/blog/2026/05/11/form-8594-asset-acquisition-statement-section-1060-class-i-vii-purchase-price-allocation-buyers-sellers-guide)

Form 8594 allocates a business sale's purchase price across seven asset classes under IRC Section 1060. Mismatched buyer-seller filings risk $50,000 penalties.

Mike Thrift

tax tax-compliance mergers-and-acquisitions

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

May 11, 2026 12 min read

## [Trader Tax Status and the Section 475(f) Mark-to-Market Election: How Active Traders Escape the Wash Sale Rule and the $3,000 Capital Loss Cap](https://beancount.io/blog/2026/05/11/trader-tax-status-section-475f-mark-to-market-election-wash-sale-rule-3000-capital-loss-cap-day-traders-guide)

Active traders can convert capital losses into ordinary deductions and eliminate the wash sale rule by filing a Section 475(f) mark-to-market election — but the statement must be attached to the prior year's April 15 return. A working guide to qualifying for trader tax status, the three big benefits of the election, Form 3115 mechanics, and the mistakes that invalidate it.

Mike Thrift

tax tax-planning trades

May 10, 2026 10 min read

## [Form 1099-DA Arrives in 2026: A Crypto Investor's Guide to the IRS's First Digital Asset Reporting Form](https://beancount.io/blog/2026/05/10/form-1099-da-digital-asset-broker-reporting-2026-crypto-investors-cost-basis-form-8949-guide)

U.S. digital asset brokers must issue Form 1099-DA for sales after December 31, 2024. This guide explains what each box reports, why 2025 forms cover only gross proceeds while 2026 forms add cost basis, and how to reconcile broker data with your own records on Form 8949.

Mike Thrift

crypto-taxes form-8949 irs-reporting

May 10, 2026 12 min read

## [Installment Sales and Form 6252: Spreading Capital Gain Across Future Years](https://beancount.io/blog/2026/05/10/installment-sales-form-6252-section-453-spreading-capital-gains-seller-financing-business-real-estate-guide)

How IRC Section 453 and Form 6252 let sellers spread capital gain on seller-financed real estate or business sales across the years payments arrive — including the gross profit percentage formula, the depreciation recapture trap, the Section 453A interest charge on installment balances above $5 million, and when to elect out.

Mike Thrift

tax-planning capital-gains real-estate

May 10, 2026 10 min read

## [Section 1374 Built-In Gains Tax: The Five-Year Window That Catches C-Corp to S-Corp Conversions](https://beancount.io/blog/2026/05/10/section-1374-built-in-gains-tax-c-corp-s-corp-conversion-five-year-recognition-period-guide)

When a C corp converts to an S corp, Section 1374 imposes a 21% corporate tax on appreciated assets sold within 5 years.

Mike Thrift

tax tax-planning s-corporation

May 9, 2026 13 min read

## [ESOP Section 1042 Rollover: How C-Corp Owners Can Sell to Employees and Defer (or Eliminate) Capital Gains Tax](https://beancount.io/blog/2026/05/09/esop-section-1042-tax-deferred-rollover-c-corp-sale-employees-capital-gains-deferral-guide)

Section 1042 of the IRC lets a C-corporation owner selling shares to an ESOP defer federal capital gains tax indefinitely — and potentially eliminate it through step-up at death. This guide covers the five qualifying conditions, what counts as Qualified Replacement Property, the floating-rate-note diversification strategy, and the trade-offs founders should weigh against a strategic sale.

Mike Thrift

tax-planning capital-gains c-corp

[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
