#calculator #tui #calculations #user-interface #math #terminal-interface

bin+lib qcalc

qcalc is a simple but effective terminal calculator for quick access and ease of use. It supports history of expressions, built-in functions and stored variables

21 releases (8 breaking)

0.9.2 Apr 11, 2024
0.9.0 Feb 3, 2024
0.1.3 Dec 31, 2023

#304 in Command-line interface

Download history 9/week @ 2023-12-22 4/week @ 2023-12-29 15/week @ 2024-01-05 24/week @ 2024-01-12 7/week @ 2024-01-19 4/week @ 2024-01-26 16/week @ 2024-02-02 444/week @ 2024-02-23 82/week @ 2024-03-01 13/week @ 2024-03-08 6/week @ 2024-03-15 3/week @ 2024-03-29 144/week @ 2024-04-05

164 downloads per month

MIT license

2.5K SLoC


qcalc is a simple and effective calculator with a terminal user interface. It serves to avoid having to open up a web browser, phone or desktop calculator application for those who work from the terminal


  • Install cargo (instructions here)
  • Install the binary cargo install qcalc
  • Run with qcalc
  • Enjoy!

Disclaimer of Warranty

The software is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.


  • Define customs function which are closures with the syntax fn myfun(x, y) x + y
  • Saves expressions which you can re-populate your input field with
  • Ability to save calculation results in variables
  • Built in functions
  • Clearing past expressions
  • Resetting variables
  • Binary and hexadecimal inputs eg. "0xff + 0b10 / 10"

Feature requests / Bug reports

  • Feel free to open an issue and i'll look into it


~121K SLoC