rate := 0.04. Everything is kept in your browser between visits.Try it: store 2.5 in r in the calculator, then type π r^2 and press Enter to get 19.63495408. Jump to: Ans, M and variables compared, the memory keys, a running total, the Ans button, storing a value, what clears memory or Casio, TI and desk calculators.
Need an online calculator with memory? The free scientific calculator has M+, M−, MR, MC, Ans and STO keys, keeps your memory between visits and needs no sign-up.
Ans, memory M and variables compared
The calculator has three places to keep a number. They differ in how they change and what clears them, so pick the one that fits the job:
| Ans | Memory M | Named variables | |
|---|---|---|---|
| What it holds | The last result | A running total | Any value you store |
| How it changes | Automatically, after every calculation | Only when you press M+, M− or MC | Only when you store a new value in that name |
| How many | One | One | As many as you like: A to F, X, Y or any name such as rate |
| How to use it | Ans key, or type ans | MR key, or type M | Type the name |
| Best for | Chains of steps | Totals built from separate calculations | Constants and inputs you reuse |
How to use calculator memory: M+, M−, MR and MC
Memory M starts at 0. The status bar above the display shows an M whenever memory holds a value other than 0, the same indicator a Casio shows.
| Key | What it does |
|---|---|
| M+ | Adds the current result to M. If the line holds a calculation you have not run yet, such as 25 × 4, M+ calculates it first and then adds 100. |
| M− (2nd, M+) | Subtracts the current result from M. |
| MR | Inserts M into the line, so you can use the total like any number, for example M/5. |
| MC (2nd, MR) | Clears memory, setting M back to 0. |
Worked example: a running total with M+ and M−
Memory is built for totals made of several separate calculations, such as an order with different quantities and prices and one refund. Press MC first if the M indicator is on.
First item
Type
25 × 4and press M+. The display shows 100 and M is now 100.Second item
Type
60 × 3and press M+. The display shows 180 and M is now 280.Refund
Type
15 × 2and press M− (2nd, M+). The display shows 30 and M is now 250.Recall the total
Press MR and = to see 250. You can also use it in a formula:
M/5gives 50, the average over five people.
Memory keeps fractions exact
Add 1/3 and 1/6 to memory with M+ and MR shows 1/2, not 0.4999999999. Try 1/3 + 1/6 to see the same exact result. Exact fractions are explained in exact results.
The Ans button: reuse the last answer
Every time you press = or Enter, the result is stored in Ans. Insert it with the Ans key or type ans. Storing a variable also updates Ans, as it does on a Casio. Because Ans changes after each calculation, it is best for chains of steps that each build on the previous one.
Right after a result is shown, pressing an operator key on the keypad (+, −, ×, ÷, xʸ, x² or x⁻¹) continues from that result by inserting Ans first, like a handheld calculator. On the keyboard, a typed line that starts with +, *, / or ^ also gets Ans in front. A typed leading - stays a negative sign, so -5 means negative five, not "the last answer minus 5".
12 × 3 → 36
/4 → Ans/4 = 9
Ans^2 + 1 → 82
-5 → −5 (a new number, not Ans − 5)
ans - 5 → −10After = the expression stays in the line and is selected, so typing a new calculation replaces it. Ans keeps the previous result until the next calculation runs. Before your first calculation there is no Ans, and using it gives the message "There is no previous answer yet".
How to store a value in a calculator: STO and named variables
Use a variable when you need a value again later, after other calculations have replaced Ans. There are three ways to store one:
The STO key
Calculate a result, press STO and pick a letter from A to F, X or Y. A message confirms "Stored in A".
The arrow
Type
5 → A(type->for the arrow). The value on the left goes into the name on the right.Ans → Tsaves the last answer. Try 5 → A.Name first
A := 5does the same with the name first, which reads well for longer names such asrate := 0.04.
To recall a value, type its name. There is no separate RCL key. A name can be any mix of letters, digits and underscores that starts with a letter, such as rate, x1 or v_0, and capitals count, so a and A are different. Names of built-in functions and constants (sin, pi, e and so on) cannot be reused. A stored variable works anywhere a number does, including with implicit multiplication:
| You enter | Result |
|---|---|
r := 2.5 | stores 2.5 in r (shown as 5/2) |
π r^2 | 19.63495408 |
2π r | 15.70796327 |
5 → A | stores 5 in A |
3A + 1 | 16 |
rate := 0.04 | stores 0.04 in rate |
1000(1 + rate)^5 | 1216.652902 |
A variable holds a number, not a formula. If you want to reuse a whole formula with different inputs, define a custom function such as area(r) := π r^2 instead. If you type a name that holds nothing, the calculator says so and suggests how to store it, for example "Z is not defined. Store a value first".
See every stored value in the Variables panel
Open the Variables tab beside the keypad (below it on a phone) to see Ans, memory M, every stored variable and your custom functions, each with its current value. Select an item to insert its name at the cursor. Each variable has a delete button, and Clear all removes everything at once after you confirm.

What clears memory, Ans and variables
| Action | Expression line | Ans | Memory M | Variables |
|---|---|---|---|---|
| AC or Esc | Cleared | Kept | Kept | Kept |
| A new calculation | Replaced | Replaced | Kept | Kept |
| MC | Kept | Kept | Set to 0 | Kept |
| Delete button in Variables | Kept | Kept | Deleted if you pick M | Only that one |
| Clear all in Variables | Kept | Cleared | Cleared | All cleared, with custom functions |
| Clear history | Kept | Kept | Kept | Kept |
| Closing the tab or reloading | Cleared | Kept | Kept | Kept |
| Clearing the site data, or closing a private window | Cleared | Cleared | Cleared | Cleared |
Ans, M, variables, custom functions, settings and history are saved in your browser’s local storage on this device only. They are not sent to ScientifiCalc, not linked to any account and not synced to your other devices or browsers.
Memory functions on Casio, TI and desk calculators
The keys differ by model, but the ideas are the same. This is a general guide, so check your own model’s manual:
| Calculator | Store and recall | What keeps or clears it |
|---|---|---|
| Casio fx-82MS, fx-95MS and similar | M+ and M− (a SHIFT function); STO (a SHIFT function) and RCL with nine letters A to F, M, X and Y; Ans | Memory and variables stay after AC and power-off; the Mcl option in the CLR menu clears them |
| TI-84 Plus | STO→, then ALPHA and a letter, then ENTER; recall with ALPHA and the letter | A value stays until a new one is stored; graphing can overwrite X, T and θ |
| Desk calculator | M+, M−, MRC | MRC recalls on the first press and clears on the second |
| ScientifiCalc | M+, M−, MR, MC, STO, Ans, or type → and := | Kept in the browser until you clear it (see the table above) |
Desk calculator keys such as GT (grand total) and MU (mark-up) are explained in calculator keys.