Skip to main content
The Fennec Lab

IRC + Treasury Reg

Federal Tax Calculators

Cross-state federal tax mechanics — primary-residence exclusion, NIIT, estate tax portability, and the federal layers that stack on top of any state.

Anchored to: IRC §§ 121, 1411, 2010; Form 706 / Form 8960

29 calculators live. Reviewed against current statute and regulation. Last updated 2026-05-15.

Most-used calculators

IRC § 121 (full section)

Federal Section 121 Primary Residence Exclusion Calculator

Compute the IRC § 121 primary-residence capital-gains exclusion — $250,000 single / $500,000 married-filing-jointly — on the sale of your principal residence, with the depreciation-recapture carve-out under § 121(d)(6), the non-qualified-use proration under § 121(b)(5), the partial-exclusion safe harbor under § 121(c), and the NIIT stack under IRC § 1411. Surfaces the realized gain, eligibility-test status, effective exclusion, taxable gain, depreciation-recapture liability, and the NIIT-subject base in a single planning view. Federal-pure mechanics: applies in any jurisdiction.

IRC § 1031 (full section)

Federal Section 1031 Like-Kind Exchange Calculator

Compute the IRC § 1031 like-kind exchange outcome on a real-property exchange — realized gain, three-channel boot (cash + mortgage net debt relief + post-TCJA personal-property), recognized gain, deferred gain rolled into replacement basis, the substituted-basis carryover under § 1031(d), the 45-day identification deadline and 180-day exchange deadline under § 1031(a)(3) with explicit compliance flags, and the tax stack on the recognized portion (unrecaptured § 1250 recapture at 25%, LTCG approximation, and NIIT at 3.8% under § 1411). Federal-pure mechanics: real property only post-TCJA (Pub. L. 115-97), QI required under Treas. Reg. § 1.1031(k)-1(g)(4). Applies in any jurisdiction.

IRC § 168(k) (bonus depreciation)

Federal Bonus Depreciation + Recapture Calculator

Compute the IRC § 168(k) bonus depreciation deduction and the recapture tax on disposition. Models the TCJA phase-down (100% → 0% from 2017 through 2027; 20% in 2026), eligibility (personal property under § 1245 and Qualified Improvement Property under § 168(e)(6) are eligible; residential rental and non-residential real property are not), straight-line follow-on depreciation, accumulated depreciation, adjusted basis, realized gain, § 1245 ordinary recapture vs § 1250 unrecaptured 25%-capped recapture, LTCG on the excess, and the § 280F luxury-auto first-year cap. Election out under § 168(k)(7) is supported. Federal-pure mechanics for any jurisdiction.

Find your calculator

Grouped by who tends to use each tool. Many calculators serve more than one audience.

For unit owners

Verify a notice, check a fine, or understand the lien exposure on a delinquent account before acting.

For attorneys

Statutory citation-level analysis suitable for client memoranda and procedural verification.

Or filter by calculator type

All 29 calculators in this cluster, organized by what they compute. Use the chips to narrow to a specific area.

100+

Calculators live

Across statute, regulation, and policy

100%

Statute-cited

Every formula links its source

4,000+

Unit tests

Every formula has a regression suite

Open

Formula transparency

Deterministic math, no hidden weights

Free

Ad-supported

No paid tier, no paywall

How these calculators are maintained

Every YMYL calculator is reviewed quarterly and after every legislative session in the jurisdiction it covers. Citations are link-validated monthly against the relevant statute and regulation websites. The methodology page documents the discipline.

Read the editorial methodology →

Search calculators

Find a calculator by name, cluster, or statute