Farad - free math scripting with units

This tool allows you to evaluate and share mathematical scripts while also handling units. Share the solution using the URL.

Thanks to the math.js library, the syntax can accept a wide array of inputs, including variable declarations, built-in functions, and universal constants.


  • Single or multi-line input
  • Units
  • Operators
  • Custom functions
  • Universal constants
  • Inline comments using the hash # symbol e.g. # This is a comment
  • Share the exact script using the URL
  • Set precision using the numeric input in the toolbar (1-15)

Many more features to come!

The number of characters you can submit may be browser dependent.

Script Library

Name URL
Metric 6g6g thread profile tolerances per ISO URL




All inputs are encrypted using Transport Layer Security (TLS) over HTTPS. Results are not logged, but the hosting provider may retain additional information including your IP address. For incredibly sensitive applications, please use other software until an offline/local version of this calculator exists.

Just from some quick use, this is cool. I think it would be helpful to have a small syntax guide when using the console. Little things like omitting periods after units was something I got wrong at the start.

Thanks @austin! Check out the “syntax” link in the original post for now. I’ll probably convert that into a guide here, but for now I have some examples in the table.

@austin I updated the interface for multi-line input.