An offline fixed asset register and depreciation calculator for small businesses and bookkeepers. Give it a CSV or xlsx register; it writes book depreciation, US federal MACRS tax depreciation, disposals with gain or loss, a roll-forward, journal entries and a book-vs-tax reconciliation as xlsx, CSV, JSON and a self-contained HTML report.
Not tax advice. This is a calculator. Section 179 and bonus (special allowance) amounts are numbers you type in; the tool does not decide whether an asset qualifies, does not apply dollar limits or phase-outs, and does not know your state's rules. Check results with a tax professional.
- Stdlib only at runtime.
openpyxlis an optional extra for xlsx input and output. - No network access. The HTML report makes no external requests (no web fonts, no CDN scripts).
- Money is
Decimaleverywhere; floats never touch an amount.
pip install -e ".[xlsx]" # or plain `pip install -e .` for CSV/JSON/HTML only
fixed-assets generate --out examples/demo.csv # synthetic register + demo.toml
fixed-assets run examples/demo.csv --out out --formats csv,json,xlsx,html
fixed-assets verify-tables # recompute every Pub. 946 table cell
fixed-assets columns examples/demo.csv # show how headers were mappedrun options: --map file.toml (default: the register's name with .toml, if it exists),
--through FY (last fiscal year to report; default the latest year with an event),
--fy-start 7 (fiscal year start month), --formula (tax without the percentage tables).
A ready-made sample lives in examples/sample_register.csv with examples/sample_register.toml.
One row per asset. Improvements are their own rows with parent_id set.
| Field | Meaning | Required |
|---|---|---|
asset_id |
unique id | yes |
in_service |
date placed in service (ISO, m/d/Y, or set date_format) |
yes |
cost |
cost or other basis; $, commas and (negatives) are accepted |
yes |
description, asset_class |
free text; class groups journal entries | |
salvage |
book salvage value | |
book_method |
SL, DB200, DB150, SYD, UOP, NONE (land) |
default SL |
book_life |
years (decimals allowed; SYD needs whole years) | for SL/DB/SYD |
book_convention |
full_month, mid_month, half_year |
default full_month |
units_total, units_by_year |
units of production: 2025:1200; 2026:900 keyed by fiscal year |
for UOP |
tax_class |
MACRS GDS class: 3, 5, 7, 10, 15, 20, 27.5, 39, or none |
|
tax_system |
GDS or ADS |
default GDS |
tax_method |
optional election: SL, DB150 |
|
ads_life |
ADS recovery period for personal property (class life) | for ADS |
section_179 |
section 179 amount you are claiming (input) | |
bonus_pct |
special allowance percent you are claiming (input) | |
disposal_date, disposal_proceeds |
sale, retirement or other disposal | |
parent_id |
marks the row as an improvement to that asset |
Column mapping. Headers are matched automatically after lowercasing and dropping punctuation
(Asset #, Placed in Service, Sec 179, Bonus %, Proceeds and so on). Anything else goes in a
TOML file:
[settings]
fiscal_year_start_month = 7 # FY2026 = July 2025 .. June 2026
entity_name = "Example Company"
tax_rate = "21%" # only for the illustrative deferred tax column
macrs_mode = "table" # or "formula"
# through = 2028
# date_format = "%d/%m/%Y"
[columns]
in_service = "Date In"
book_life = "Yrs"
[accounts]
depreciation_expense = "6400 Depreciation Expense"
accumulated_depreciation = "1590 Accumulated Depreciation"
fixed_assets = "1500 Fixed Assets"
cash = "1000 Cash"
gain_on_disposal = "7100 Gain on Disposal of Assets"
loss_on_disposal = "7200 Loss on Disposal of Assets"Every problem in the register is reported at once with its row number; nothing is silently skipped.
Improvements inherit the parent's class, book method, convention and MACRS class unless given. Book life defaults to the parent's remaining life (at least 12 months). For tax, an improvement is separate MACRS property with its own in-service date (Pub. 946 lets you keep using the tables when "an addition or improvement to that property ... is depreciated as a separate item of property"). If the parent is disposed of, its improvements go with it and the proceeds are split by cost.
Fiscal years are named for the calendar year they end in. Quarters and months for the tax conventions are counted from the start of the fiscal year, as Pub. 946 describes for a 12-month tax year. Short tax years are not supported.
The life is a line of life months; each fiscal year uses an interval of it, set by the convention.
- Full month: the in-service month counts in full; the disposal month does not.
- Mid-month: half a month for the in-service month and for the disposal month.
- Half-year: half a year in the first fiscal year and in the disposal year. Placed in service and disposed of in the same fiscal year gets nothing.
- Straight line:
(cost - salvage) x months / life. - Declining balance 200% / 150%:
book value x rate x months / 12, withrate = 2 or 1.5 / life. Switches to straight line over the remaining months when that is equal or larger, and never goes below salvage. Salvage can end the schedule early. - Sum-of-the-years'-digits: age-year
kofngets(n - k + 1) / (n(n+1)/2), spread over its 12 months, so a partial first year splits age-years cleanly. - Units of production:
(cost - salvage) x units this year / total units, capped at what is left.
If salvage is more than cost there is nothing to depreciate; the tool warns and books zero.
- Section 179 (your amount) comes off the cost first.
- Bonus is your percent of what is left.
- MACRS applies to the remainder.
That order follows Pub. 946 chapter 3 ("you must reduce the depreciable basis of the property by the special depreciation allowance before figuring your regular MACRS depreciation deduction") and the MACRS worksheet in chapter 4.
- GDS: 3, 5, 7 and 10-year property use 200% DB; 15 and 20-year use 150% DB; both switch to
straight line. Residential rental (27.5 years) and nonresidential real (39 years) use straight
line with the mid-month convention.
tax_method = DB150orSLselects those elections. - ADS: straight line over
ads_life; real property uses 30 years (residential) or 40 years. - Conventions: mid-month for real property; otherwise half-year, unless the mid-quarter test fires: the depreciable bases placed in service in the last 3 months of the tax year are more than 40% of the year's total. Following Pub. 946, the test uses basis after section 179 and before bonus, and leaves out real property and property placed in service and disposed of in the same year. The result for each year is in the report.
- Table method (default): each year's deduction is
basis x table percent, using the printed percentages from Pub. 946 Appendix A (Tables A-1 to A-18, stored as data insrc/fixed_assets/data/pub946_tables.json). Combinations with no printed column (an unusual ADS life) use percentages computed from the same rules. - Formula method (
--formula): "Figuring the Deduction Without Using the Tables": each year works on the remaining basis in money, which can differ from the tables by a few cents. - Disposal year: half-year takes half a year; mid-quarter takes 12.5 / 37.5 / 62.5 / 87.5% for a disposal in quarter 1 to 4; mid-month takes (months before the disposal month + 0.5) / 12. In the last recovery year the amount is never more than the table amount. Property placed in service and disposed of in the same year gets no depreciation and no bonus (Pub. 946 chapter 1 and 3); section 179 and bonus inputs on such an asset are ignored with a warning.
- Book gain = proceeds - (cost - accumulated book depreciation).
- Tax gain = proceeds - adjusted basis (cost - section 179 - bonus - MACRS). Recapture character (section 1245 or 1250) is not split out.
- Book vs tax: per fiscal year, book depreciation vs total tax deduction, book vs tax gain, and
the cumulative temporary difference (book carrying amount - tax basis), in total and per asset.
With
tax_rateset, an "illustrative deferred tax" column multiplies the difference by that rate. It is a simple deferred-difference schedule, not a tax provision.
| Report | Contents |
|---|---|
assets |
the register as resolved, with tax system, method, convention and which table was used |
schedule |
per asset per fiscal year: book depreciation, NBV, 179, bonus, MACRS rate and amount, tax basis |
rollforward_book, rollforward_tax |
beginning cost, additions, disposals, ending; same for accumulated depreciation |
journal |
book entries per fiscal year: depreciation by class, then each disposal (cash, accumulated depreciation, cost, gain or loss); every entry balances |
reconciliation, deferred_by_asset |
book vs tax by year and by asset |
mid_quarter_tests |
the 40% test for each year |
warnings |
anything the tool noticed and you should look at |
- xlsx: one sheet per report, real numbers and dates with number formats, frozen header, filters.
- CSV: one file per report. Text cells that start with
= + - @, tab or carriage return are prefixed with'so spreadsheet apps do not run them as formulas; numbers are written as numbers. - JSON: one file, amounts as decimal strings, with a
metablock. - HTML: one self-contained file in a frosted-glass style with light and dark themes (follows the
system; the button or
?theme=darkoverrides), an inline SVG chart per asset, and views for overview, assets, roll-forward, journal, book vs tax and methods. A Content-Security-Policy meta tag blocks any network request.
Outputs carry the register's file name only, never a full local path.
- Amounts are
Decimal; intermediate math is exact fractions or 28-digit decimals. - Each asset's amount for each year is rounded to cents, half up.
- The last year of a schedule takes the remainder, so a schedule always sums to its basis exactly.
- Percentages from the tables are used exactly as printed.
IRS Publication 946, How To Depreciate Property, the 2025 edition ("For use in preparing 2025
Returns"; PDF dated March 2026), from https://www.irs.gov/pub/irs-pdf/p946.pdf. The tables were
extracted from that PDF by word position with tools/extract_pub946.py (dev only, needs PyMuPDF)
and spot-checked by hand against the printed pages in tests/test_tables.py. Every column sums to
exactly 100%.
fixed-assets verify-tables recomputes all 8,744 printed cells from the method rules in Pub. 946
chapter 4 and compares them with the printed values.
| Tables | Cells | Match the rules exactly |
|---|---|---|
| A-1 to A-5 (GDS, half-year and mid-quarter) | 330 | 326 |
| A-6 (residential rental, 27.5 years) | 342 | 342 |
| A-7a (nonresidential real, 39 years) | 480 | 480 |
| A-8 to A-13a, A-14 to A-18 (ADS SL, 150% DB) | 7,592 | 7,558 |
How the rules become percentages: each year's percent is figured on what is left of 100% after the earlier rounded percents, rounded half up to the printed precision, and the last year takes what is left. That rounding scheme is not written in the publication; it was found by trying the obvious candidates and is the one that reproduces the tables. (Rounding each year's exact percent misses 1,437 cells; rounding cumulative totals misses 2,161.) Tables A-7a and A-13 are built differently: a constant middle-year rate (100 / life, rounded) with the first and last years fitted around it (A-7a uses multiples of a rounded half-month; A-13 rounds the smaller end year and lets the larger one take the remainder). The verifier encodes those two constructions and says so.
The 4 cells in the required tables that do not match are printed values that look like one-offs:
- Table A-2, 20-year, year 2 is printed 7.000; the rules give 7.008, and years 3 to 20 as printed follow from 7.008. Year 21 (0.565 instead of 0.557) absorbs the difference.
- Table A-3, 7-year, year 1 is printed 17.85; 2/7 x 62.5% = 17.857. Year 8 (3.34 instead of 3.33) absorbs it.
The 34 other differing cells (in A-8, A-14, A-15, A-16, A-18) are each off by exactly one unit in the last printed digit, and they cancel within each column (every column still sums to 100). The tool always uses the printed value, so results match the publication.
The declining-balance switch years from the rules also match the publication's table (3-year in year 3, 5-year in 4, 7-year in 5, 10-year in 7, 15-year in 7, 20-year in 9).
| Section of Pub. 946 (2025) | Example | Result |
|---|---|---|
| Ch. 4, Using the MACRS Percentage Tables | office furniture, $10,000, 7-year, half-year | $1,429, 2,449, 1,749, 1,249, 893, 892, 893, 446 |
| Ch. 4, Examples, Example 1 | building $100,000, March, Table A-7a | $2,033, 2,564, 2,564 |
| Ch. 4, Examples, Example 2 | machine, furniture, computer; mid-quarter triggered | $1,000 / 857, $107 / 255, $250 / 1,900 |
| Ch. 4, Sale or Other Disposition, mid-quarter | 5-year, $10,000, Dec 2022, sold April 2025 | $500, 3,800, 2,280, then 513 |
| Ch. 4, Sale or Other Disposition, mid-month | residential rental $100,000, sold March 2025 | $757.50 |
| Ch. 4, Without the Tables, Example 1 | 5-year, $1,000, 200% DB, half-year | $200, 320, 192, 115, 115, 58 |
| Ch. 4, Without the Tables, Example 3 | safe, furniture, computer, mid-quarter | $1,000 / 857, $107 / 255, $250 / 1,900 |
| Ch. 4, Without the Tables, Example 2 | building $100,000, January, SL | years 2 and 3: $2,564; year 1 is $2,457.26 vs the printed $2,456 because the publication rounds 11.5/12 to 0.958 |
| Ch. 4, Without the Tables, Example 4 | $39,000, $24,000 section 179, July | first year $2,144 |
| Ch. 4, Rules Covering the Use of the Tables | $39,000, $24,000 section 179, October | $536 (mid-quarter) |
| Ch. 3, How Much Can You Deduct? | $450,000, 40% special allowance | $180,000 allowance, $270,000 left for MACRS |
The publication rounds to whole dollars in most examples; the tests compare after rounding to dollars, half up.
fixed-assets generate writes a register with a July fiscal year and seeded traps: a mid-quarter
trigger year, a disposal in the first year, an improvement added later, salvage greater than cost,
declining balance that reaches salvage early, leap-day in-service and disposal dates, land, an ADS
asset and real property. tests/test_generate_cli.py checks that each trap behaves.
tests/test_properties.py builds 200 random registers (fixed seeds) and checks that accumulated
depreciation never exceeds the depreciable basis (book: cost - salvage; tax: cost), book value never
drops below salvage, full schedules sum to the basis exactly, roll-forwards tie to the reconciliation,
and every journal entry balances.
What the tests do not prove. The registers are synthetic and the code, the tests and the reading of the publication come from one author. Matching the printed tables and the publication's own examples shows the arithmetic agrees with Pub. 946; it does not show the tool handles every real register, every election or every edge case a preparer would see.
- Not tax advice. No eligibility decisions for section 179 or bonus, no dollar limits, phase-outs or business income limit.
- No state conformity, no AMT, no listed-property rules, no luxury-auto caps, no partial business use.
- No short tax years, no casualty or other basis adjustments after the first year, no like-kind exchanges, no general asset accounts, no recapture character.
- One reporting currency; no impairment, revaluation or component accounting beyond improvements.
![]() |
![]() |
![]() |
![]() |
Screenshots come from the sample register rendered with headless Edge.
pip install -e ".[dev]"
python -m ruff check .
python -m pytest -qTests write only to pytest's tmp_path. CI runs ruff and pytest on Ubuntu and Windows with
Python 3.11 and 3.14.
- budget-var: budget vs actual pack with materiality, flex budgets and a backtested forecast.
- lease-sched: lease liability and right-of-use schedules with journal entries
- gl-close: month-end close accruals, schedules, close calendar and tie-outs
MIT, see LICENSE.





