Expressions that stay readable
Use exact integers, high-precision real arithmetic, parentheses, currency literals, and unit conversions in one expression language.
A powerful calculator with a terminal-style interface.
WHY THIS CALCULATOR
Terminal Calculator is built around one Rust calculation engine, then gives that engine a window and a command line. The point is continuity: expressions, definitions, history, and scripts stay useful after the first answer.
Use exact integers, high-precision real arithmetic, parentheses, currency literals, and unit conversions in one expression language.
Variables and custom functions make repeated calculations explicit instead of hiding them in a copied result.
Save the transcript, history, script buffer, variables, functions, custom units, ans, and settings in a session.
Open the free web version for a quick calculation, use the desktop app for a dedicated window, or run tcalc right in your terminal.
Core calculation tools are shared. Interface and workflow features vary by edition.
ans for the last result.tcalc sessions in the desktop and web appstcalc: interactive terminal UI, plain prompts, one-off expressions and batch scriptstcalc: pipe input and write text or JSON outputSEE IT RUN
01
Convert ten inches directly from your shell.
tcalc --no-state -e '10 in->cm'Result 25.4 cm
02
Convert the 0.1-inch pitch to millimeters, then multiply by the 19 gaps.
0.1 in->mm
ans * 19Result 2.54 → 48.26 mm from first pin to last
03
Set bit 4 (counting from zero) in 0x2C without changing the other bits.
display hex
0x2C | (1 << 4)Result 0x3C
04
Use Ohm’s law for 3.3 V across a 220 Ω resistor.
voltage = 3.3
resistance = 220
voltage / resistance * 1000Result 15 mA through the resistor
USE IT WHERE YOU ARE
Start small, then keep the parts of the calculation that are worth returning to.
10 in->cm
$84 + $36
sqrt(2)Use tcalc -e for one result, or open the interactive terminal for a running transcript.
rate = 12.5
hours = 7.5
rate * hoursVariables and functions keep a repeatable calculation legible. The exact boundaries after trial are still under development.
tcalc --state work.tcalc
:save project.script
:export history.scriptSession and script files preserve work without requiring an account or a network service.
EDITIONS
Swipe or scroll to compare all three editions.
| Compare | Desktop | Terminal | Free Web |
|---|---|---|---|
| Runs on | macOS, Windows, Linux targets | macOS, Linux | Browser |
| How you work | App window | tcalc, shell | Browser workspace |
| Connectivity | Offline calculation | Offline calculation | Online |
| Access | 30-day trial / Pro | 30-day trial / Pro | Free, no account |
| Calculator features | |||
| Precision | Up to 1,000 digits | Up to 1,000 digits | Up to 1,000 digits |
| Scientific functions | ✓ | ✓ | ✓ |
| Live preview | ✓ | Interactive UI only | ✓ |
| Unit conversions & BIN/DEC/HEX | ✓ | ✓ | ✓ |
Variables, functions & ans | ✓ | ✓ | ✓ |
| Sessions & history | Local, .tcalc | Local state file | Browser, .tcalc |
| Scripts & automation | Script editor | Editor, pipes, batch, JSON | Script editor |
| Windows & appearance | Pinning, snap to edge | - | - |
AT A GLANCE
These are implementation details supported by the current source and local verification records. They are not a final commercial feature list.
| Calculation core | Exact integers · high-precision real arithmetic · expression parser |
|---|---|
| Expressions | Arithmetic, parentheses, unit conversions, currency literals, scripts, and saved definitions |
| Desktop targets | macOS · Windows · Linux · Tauri 2 + Svelte front end |
| Terminal targets | macOS and mainstream Linux · interactive TUI, plain, batch, JSON, and script modes |
| Persistence | Local sessions, history, variables, functions, custom units, scripts, and settings |
| Network requirement | None for calculation or local sessions |
| License | $10 lifetime license · short activation code shown right after purchase |
TRIAL AND ACCESS
Try every feature in the desktop and terminal editions for 30 days. Basic arithmetic remains available after the trial.
FAQ
Terminal Calculator is a powerful, keyboard-first calculator for engineers and software developers. It handles high-precision math, scientific functions, unit conversions, and binary and hex with bitwise operations. See results as you type, reuse named variables or ans, and use tcalc to run repeat calculations from shell scripts.
Start with Free Web if you want to try it without installing anything. Choose Desktop if you want a calculator you can pin beside your work. Choose Terminal if you want to calculate from the command line or run calculations in a script.
A one-time $10 payment gives you a lifetime license for personal use. It unlocks all features in both the desktop and terminal versions on as many of your own devices as you like. Future upgrades are included. No subscription.
Buy it with the Buy a lifetime license button. Checkout is handled by Stripe, and your activation code (TC followed by 10 letters and numbers) appears on the order page right after payment. In the desktop or terminal edition, choose Enter License Key and paste the code.
You need an internet connection to open the free web version. The desktop and terminal versions work offline, including during the trial. Short-code activation requires an internet connection; after activation, you can keep calculating offline.
The Manual lists all supported commands, functions, and operators, with examples you can try.
Need help or have a suggestion? Email me at hi@doer.ee.