A zero-dependency, 100% offline Node.js CLI & ESM library (schedule-e-macrs) for real estate investors, landlords, bookkeepers, and tax preparers assembling 2026 IRS Schedule E (Form 1040) rental workpapers — with zero financial data or bank CSVs uploaded to any server:
- Schedule E Transaction Rollup &
$2,500De Minimis Safe Harbor Flagger (rollup): Classifies bank, credit card, Airbnb/VRBO, AppFolio, Buildium, and Stessa CSV rows into IRS Schedule E Lines 3–19 by property, computes Line 20 Total Expenses and Line 21 Net Rental Income / (Loss), and flags single Line 14 Repair invoices exceeding the$2,500IRS De Minimis Safe Harbor (Treas. Reg. § 1.263(a)-1(f), configurable to$5,000with AFS). - 27.5-Yr / 39-Yr Mid-Month MACRS & 2026 Bonus Depreciation Scheduler (
macrs): Separates non-depreciable land basis from depreciable building basis and generates exact Year 1–28/29 (IRS Pub. 946 Table A-6 residential) or Year 1–40 (Table A-7a commercial) schedules plus P.L. 119-21 § 168(k) / IRS Notice 2026-11 Bonus Depreciation:- 100% Bonus Depreciation for eligible 5-, 7-, and 15-year property & cost segregation components acquired after Jan 19, 2025 and placed in service in 2026.
- 20% Bonus Depreciation (TCJA phase-down) + Table A-1 Half-Year GDS MACRS on remaining basis if acquired on or before Jan 19, 2025.
- 2026 Split-Year Standard Mileage Calculator (
mileage): Automatically splits 2026 rental trips at2026-07-01between72.5¢/mile(Jan 1 – Jun 30, 2026 — IRS Notice 2026-10) and76.0¢/mile(Jul 1 – Dec 31, 2026 — IRS Announcement 2026-11), outputting per-property Schedule E Line 6 totals and Form 4562 Part V listed-property mileage summaries. - 2026 Section 199A QBI & Section 469 PAL Evaluator (
qbi): Evaluates 2026 § 199A thresholds (Rev. Proc. 2025-32 § 4.26: Single/HoH$201,750+$75K→$276,750; MFJ$403,500+$150K→$553,500; MFS$201,775+$75K→$276,775), the 250-hour Rev. Proc. 2019-38 Safe Harbor (excluding triple-net NNN leases), W-2/UBIA phase-in limits, and the IRC § 469(i)$25,000Passive Activity Loss allowance ($100K–$150KMAGI phaseout) + Form 8582 suspended loss carryforward.
Prefer an interactive browser-local Schedule E workbook, MACRS cost-segregation modeler, split-year mileage tracker, and CPA-ready CSV/PDF pack (zero bank data leaves your browser)? Use ScheduleESheet (
https://schedulee.hanzilla.co).
Requires Node.js >= 18.0.0 (zero runtime dependencies — no npm install needed).
# 1. Classify a landlord bank/PM CSV into Schedule E Lines 3-19 & flag >$2,500 repairs
node bin/cli.mjs rollup samples/rental_transactions_2026.csv
node bin/cli.mjs rollup samples/rental_transactions_2026.csv --de-minimis 2500 --format csv -o out/schedule_e.csv
node bin/cli.mjs rollup samples/rental_transactions_2026.csv --format json
# 2. Generate exact 27.5-yr or 39-yr MACRS + 2026 P.L. 119-21 100% vs 20% Bonus schedule
node bin/cli.mjs macrs --basis 500000 --land-pct 20 --month 3 --type residential --cost-seg-pct 25 --acquired-after-2025-01-19 true
node bin/cli.mjs macrs --basis 500000 --land-pct 20 --month 3 --type residential --cost-seg-pct 25 --acquired-after-2025-01-19 false --format json
node bin/cli.mjs macrs --basis 1000000 --land-pct 25 --month 6 --type commercial
# 3. Split 2026 rental mileage at 2026-07-01 ($0.725 H1 vs $0.760 H2) for Line 6 & Form 4562 Part V
node bin/cli.mjs mileage samples/mileage_2026.csv --personal-miles 6000
node bin/cli.mjs mileage samples/mileage_2026.csv --format json
# 4. Evaluate 2026 Section 199A QBI Safe Harbor & IRC § 469(i) $25,000 PAL phaseout
node bin/cli.mjs qbi --net-income 28000 --taxable-income 185000 --filing single --hours 265 --nnn false --magi 195000
node bin/cli.mjs qbi --net-income -18000 --taxable-income 115000 --filing mfj --hours 180 --nnn false --magi 125000 --format json# IRS Schedule E (Form 1040) Transaction Rollup
- **Properties:** 3 | **Transactions Classified:** 37
- **Total Rents Received (Line 3):** $55,110.00
- **Total Expenses (Line 20):** $30,019.10
- **Net Rental Real Estate Income / (Loss) (Line 21):** **$25,090.90**
- **De Minimis Safe Harbor Repair Flags (> $2,500.00):** **2**# 2026 Split-Year Standard Mileage Rollup (Schedule E Line 6 + Form 4562 Part V)
- **H1 Period (2026-01-01 to 2026-06-30 @ $0.725/mi — Notice 2026-10):** 366.0 mi (6 trips) = **$265.35**
- **H2 Period (2026-07-01 to 2026-12-31 @ $0.760/mi — Ann. 2026-11):** 385.6 mi (7 trips) = **$293.06**
- **Total Rental Business Miles:** 751.6 mi (13 trips)
- **Total Schedule E Line 6 Mileage Deduction:** **$558.41**import fs from 'node:fs';
import {
rollupScheduleECsv,
calculateMacrsSchedule,
calculateMileageCsv2026,
evaluateQbiAndPal2026,
} from './src/index.mjs';
// 1. Schedule E transaction rollup & $2,500 De Minimis repair alerts
const txCsv = fs.readFileSync('samples/rental_transactions_2026.csv', 'utf8');
const rollup = rollupScheduleECsv(txCsv, { deMinimisThreshold: 2500 });
console.log(rollup.portfolioTotals.line21NetIncomeOrLoss); // 25090.9
console.log(rollup.deMinimisFlags.length); // 2
// 2. 27.5-yr MACRS + 2026 P.L. 119-21 100% Bonus Depreciation
const macrs = calculateMacrsSchedule({
basis: 500000,
landPct: 20,
month: 3,
type: 'residential',
costSegPct: 25,
acquiredAfterJan19_2025: true,
});
console.log(macrs.summary.year1TotalDep); // 108637
// 3. 2026 Split-Year Mileage (72.5c H1 / 76.0c H2)
const mileageCsv = fs.readFileSync('samples/mileage_2026.csv', 'utf8');
const mileage = calculateMileageCsv2026(mileageCsv, { personalMiles: 6000 });
console.log(mileage.summary.totalDeduction); // 558.41
// 4. 2026 § 199A QBI & § 469(i) PAL Evaluation
const qbiPal = evaluateQbiAndPal2026({
netIncome: -18000,
taxableIncome: 115000,
filing: 'mfj',
hours: 260,
nnn: false,
magi: 125000,
});
console.log(qbiPal.pal.specialAllowanceAllowed); // 12500
console.log(qbiPal.pal.suspendedLossForm8582); // 5500schedule-e-macrs-cli is an offline workpaper preparation and calculation utility — it is not legal, accounting, or tax advice, and it does not file returns with the IRS or substitute for a qualified CPA or Enrolled Agent.
- Always verify final Schedule E, Form 4562, Form 8582, Form 8995 / 8995-A, De Minimis Safe Harbor elections (
Treas. Reg. § 1.263(a)-1(f)), cost segregation engineering studies, and state depreciation conformity rules (many states do not conform to federal 100% bonus depreciation) with a qualified tax advisor before filing. - All records in
samples/rental_transactions_2026.csvandsamples/mileage_2026.csvare 100% synthetic fictional test data.
npm test
# or
node --testMIT — see LICENSE.