Your Excel model, calculated exactly, without Excel.
Calcwright is a formula engine that reads .xlsx workbooks, takes new inputs and returns the numbers Excel would. Use it from Python, Node, Rust or the command line, on a server, with no Office licence and no LibreOffice.
| Cell | Excel saved | Calcwright | ||
|---|---|---|---|---|
| 1 | CF!B33 | 1,342.05 | 1,342.05 | ✓ |
| 2 | Summary!D61 | −8,185,452.31 | −8,185,452.31 | ✓ |
| 3 | Rates!F12 | 4.8231% | 4.8231% | ✓ |
| 4 | Lookup!A25 | No Activity | No Activity | ✓ |
| 5 | Dates!H23 | 2024-02-29 | 2024-02-29 | ✓ |
| 6 | Report!B13 | #N/A | #N/A | ✓ |
Judged by Excel, not by us.
Every workbook Excel saves stores the value Excel computed for each formula. We recompute every formula from the inputs and compare with Excel's own answer, across 15,871 real business workbooks: trading models, budgets, P&Ls and schedules.
| Same 1,000 workbooks · 2,092,344 formula cells · same judge | ||
|---|---|---|
| Calcwright | 99.985% | |
| LibreOffice (headless, forced recalc) | 97.352% | |
What we don't count, and why: cells that depend on NOW(), TODAY() or RAND() (their saved values came from another day), cells calling VBA macros or add-ins, and workbooks saved in manual-calculation mode whose saved values are stale. Every exclusion is counted and published with the benchmark.
Known difference: Excel's XIRR and IRR stop iterating early (Excel documents a 0.000001% tolerance). Calcwright returns the fully converged rate, so results agree to about 8 significant digits rather than all 15.
Put the model in production.
Analysts keep building in Excel. Your service loads the workbook, sets the inputs and reads the outputs.
import calcwright wb = calcwright.load("pricing-model.xlsx") wb["Inputs!B2"] = 120_000 # loan amount wb["Inputs!B3"] = 0.0525 # rate print(wb["Quote!C10"]) # recalculated on read → 7213.48 wb.save("quote-1042.xlsx") # Excel opens it with the new values
import { Workbook } from "calcwright"; import { readFileSync } from "node:fs"; const wb = Workbook.fromBytes(readFileSync("pricing-model.xlsx")); wb.set("Inputs!B2", 120000); console.log(wb.get("Quote!C10")); // 7213.48
# set inputs, recalculate, print outputs, save calcwright run pricing-model.xlsx Inputs!B2=120000 Inputs!B3=0.0525 \ --get Quote!C10 Quote!C11 -o quote-1042.xlsx # does this workbook calculate the same outside Excel? calcwright verify pricing-model.xlsx
let mut wb = calcwright::xlsx::load_xlsx_path("pricing-model.xlsx")?; let (s, r, c) = wb.resolve_address("Inputs!B2").unwrap(); wb.set_value(s, r, c, Value::Number(120_000.0)); calcwright::recalculate(&mut wb);
Excel's semantics, not an approximation
Implicit intersection, array formulas, dynamic arrays, shared formulas, structured table references, 3D references, defined names, data tables, the 1900 leap-year bug, Excel's text collation and its near-zero rounding.Fast and self-contained
One Rust engine behind every binding. The full 15,871-workbook benchmark runs in under a minute on a desktop. No Office, no Java, no headless LibreOffice to babysit.Your file stays the file
Calcwright writes results back into the original .xlsx and preserves styles, charts, macros and names, so the output opens in Excel exactly as the analyst built it.Pricing
One-time licences with 12 months of updates. Builds released while your updates last are yours to keep for good.
Free
- Workbooks up to 2,000 formula cells
- CLI, Python, Node and Rust
- Browser workbook checker, any size
Developer
- No size limit
- Commercial use in your products and services
- All bindings and platforms
- 12 months of updates
Team
- Everything in Developer
- Unlimited servers, CI and containers
- One key for the whole team
- 12 months of updates
Your key arrives on the payment confirmation page and by email, and works offline. Lost it? Resend it. For comparison, commercial spreadsheet engines for .NET and Java list at $975 to $1,199 per developer.
Questions
How is this different from openpyxl or pandas?
Those libraries read and write the file but cannot calculate formulas: they return whatever value Excel last saved, or nothing for formulas they wrote themselves. Calcwright evaluates the formulas.
Why not run LibreOffice headless?
On the same 1,000 workbooks, LibreOffice reproduces 97.35% of Excel's values and Calcwright 99.985%. LibreOffice is also a 300 MB desktop suite that has to be supervised on a server; Calcwright is a library.
Which files does it read?
.xlsx and .xlsm (Excel 2007 and later). Legacy .xls files can be saved as .xlsx first.
What can't it do?
It doesn't run VBA macros or add-in functions, refresh external data connections or evaluate GETPIVOTDATA. The checker lists any of these it finds in your workbook.
Does my workbook leave my machine?
No. The library runs in your process, and the browser checker runs in your browser using WebAssembly. Nothing is uploaded.