v := 20), type the formula once using those names, then change one variable and press Enter on the formula again. For a formula you use often, define it as a function, such as R(v, a) := v^2 sin(2a)/9.81, and call it with new values in one line: R(25, 45).A formula calculator is any calculator that lets you write a formula with letters instead of numbers and evaluate it for different values. The ScientifiCalc scientific calculator works this way as a free online formula calculator: you name your inputs, write the formula once, and recalculate it as often as you like. This guide shows both methods, works one full example, gives a table of everyday formulas you can open in the calculator, and explains how to store a formula on a Casio or TI handheld.
How to reuse a formula with variables or a function
Retyping a long formula for every new input is slow and invites typing errors. A calculator with variables offers two ways around it:
- Variables
- Named values such as
v,rateorx1. Assign one withv := 20or20 -> v; the STO key does the same for the current result, with a picker for the letters A to F, X and Y. A formula that uses the names picks up their current values every time it is evaluated. - Custom functions
- A formula with named parameters, such as
f(c) := 9c/5 + 32, called like a built-in function:f(100)returns 212. A function can have up to five parameters; the custom functions page covers the details.
Variables suit "what if" exploration, where you change one input and keep the rest. Functions suit repeated evaluation with completely different inputs, and they are the closest thing to saving a formula: the definition stays in the calculator until you delete it.
Worked example: the range of a projectile
On level ground and ignoring air resistance, an object launched at speed v and angle θ above the horizontal lands at a distance
For v = 20 m/s and θ = 35°, the calculation by hand is
Now suppose you want to compare several launch angles. Here is how to do it without retyping the formula. The calculator must be in degree mode (the default, shown as DEG in the status bar), because the angles are in degrees.
Store the inputs
Enter
v := 20,g := 9.81anda := 35, pressing Enter after each. They appear in the Variables panel.Type the formula once
Enter
v^2 sin(2a)/g. The result, about 38.3157, matches the hand calculation.Change one input and re-evaluate
Enter
a := 45, then press Arrow Up until the formula is back in the line (or select it in the History panel) and press Enter. The range rises to about 40.7747 m.Repeat for other values
With
a := 30and thena := 60, the formula gives about 35.3119 m both times, because sin 60° = sin 120°.Turn the formula into a function
Enter
R(v, a) := v^2 sin(2a)/9.81. NowR(20, 35)returns about 38.3157 andR(25, 45)returns about 63.7105, each in a single line.
The table shows the results side by side. Complementary angles (30° and 60°) give the same range, and 45° gives the longest throw, a pattern that is easy to spot once recalculating costs nothing.
| Angle θ | R (m) |
|---|---|
| 30° | 35.31 |
| 35° | 38.32 |
| 40° | 40.16 |
| 45° | 40.77 |
| 60° | 35.31 |
Common formulas to try in the formula calculator
Each link below opens the scientific calculator with the formula already defined as a function. Call it with your own values in the next line.
| Formula | Variables | Type this | Example call and result |
|---|---|---|---|
| Area of a circle, A = πr² | r = radius | A(r) := pi r^2 | A(5) = 78.5398 |
| Compound interest, A = P(1 + r/n)ⁿᵗ | P = principal, r = annual rate, n = compounds per year, t = years | FV(P, r, n, t) := P(1 + r/n)^(n t) | FV(1000, 0.05, 12, 10) = 1647.01 |
| Hypotenuse, c = √(a² + b²) | a, b = the two shorter sides | hyp(a, b) := sqrt(a^2 + b^2) | hyp(5, 12) = 13 |
| Kinetic energy, KE = ½mv² | m = mass in kg, v = speed in m/s | KE(m, v) := m v^2/2 | KE(1200, 25) = 375000 J |
| Celsius to Fahrenheit, F = 9C/5 + 32 | c = temperature in °C | F(c) := 9c/5 + 32 | F(37) = 98.6 |
| Projectile range, R = v² sin(2θ)/g | v = speed, a = angle in degrees | R(v, a) := v^2 sin(2a)/9.81 | R(25, 45) = 63.7105 m |
The same pattern works with variables when you want to vary one input at a time. For compound interest, store P := 1000, r := 0.05, n := 12 and t := 10, enter P(1 + r/n)^(n t) to get 1647.01, then set t := 20 and recall the formula to get 2712.64.
How to store a formula on a Casio or TI calculator
Handheld scientific and graphing calculators have their own versions of the same two ideas. The key names below come from the manufacturers’ manuals; menus differ slightly between models, so check the manual for yours.
- Casio scientific calculators (fx-991 and similar): the CALC key. Type an expression that uses variable letters, such as
A×B÷2, and press CALC. The calculator asks for a value for each variable in turn and shows the result. Press CALC again to enter new values without retyping the expression. - Casio: store a value with STO. Enter the value, press SHIFT then RCL (STO), and press the variable letter. The calculator keeps the letters A, B, C, D, E, F, M, X and Y.
- TI-83 Plus and TI-84 Plus: store a value with STO→. Enter the value, press STO→, press ALPHA and the letter, then ENTER. Any expression that uses the letter picks up its current value.
- TI-84 Plus: keep a formula in Y=. Type the formula in terms of X in the Y= editor, for example
Y1 = 9X/5 + 32. On the home screen, enterY1(37)(Y1 is under VARS, Y-VARS, Function) to evaluate it for X = 37.
A browser calculator is easier for long formulas because you can use whole words as names, see every stored variable in a panel and read back the full history. On a handheld you are usually limited to single-letter variable names.
Why this beats retyping
- Fewer typing errors. The formula is typed once and checked once.
- Full precision. Stored values keep every digit, so nothing is rounded between steps.
- A readable history. An entry such as
v^2 sin(2a)/grecords what was calculated, which a bare string of numbers does not. - Saved between visits. Variables and functions are kept in your browser’s local storage on this device, so they are still there next time.
Continue from a result
To use a result in a follow-up step, such as converting 38.3157 m to feet, press × on the keypad right after the result appears: the calculator inserts Ans first, so pressing ×, entering 3.28084 and pressing = gives about 125.71. Typing *3.28084 on the keyboard does the same. A typed leading - is different: it starts a negative number, so type Ans - 5 to subtract from the last result. The guide How to store and recall values covers Ans and the memory keys in more detail.
Common mistakes when writing formulas
- Separate names with
*or a space when they multiply:v^2 * sin(2a)orv^2 sin(2a). A run of letters such asvais read as v × a, unless you have stored a variable calledva, in which case it means that variable. - Put parentheses around whole arguments, exponents and denominators.
sin(2a)/gdivides the sine by g, whilesin(2a/g)takes the sine of 2a/g. - Names may contain letters, digits and underscores (
rate,x1,v_0). Built-in names such assin,piandecannot be reused, and lowercasexandyare kept for graphing, so store values underX,Yor a longer name such asx1. - Names are case-sensitive:
Aandaare different variables. A function also takes over its name, so afterA(r) := pi r^2a variable calledAcan no longer be read on its own. - Check the angle unit. In radian mode the same formula treats 35 as 35 radians and gives a meaningless range.
Store your inputs as variables, type the formula once, and recalculate as often as you like.