User manual · Calculations

Calculator memory functions: M+, MR, Ans and STO

Calculator memory functions explained: what M+, M−, MR and MC do, how to reuse Ans, store a value with STO, and what clears memory, with worked examples.

By Hira Noor, mathematicianUpdated
Short answerCalculator memory functions keep a number so you can use it again later. M+ adds the current result to memory, M− subtracts it, MR recalls the memory total and MC clears it. Ans always holds the last answer, and STO stores a result in a letter such as A or X. The ScientifiCalc scientific calculator has all of these keys, plus named variables such as 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.

Open the scientific calculator

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:

The three kinds of calculator memory on ScientifiCalc
AnsMemory MNamed variables
What it holdsThe last resultA running totalAny value you store
How it changesAutomatically, after every calculationOnly when you press M+, M− or MCOnly when you store a new value in that name
How manyOneOneAs many as you like: A to F, X, Y or any name such as rate
How to use itAns key, or type ansMR key, or type MType the name
Best forChains of stepsTotals built from separate calculationsConstants 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.

Memory keys on the ScientifiCalc keypad
KeyWhat 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.
MRInserts 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.

  1. First item

    Type 25 × 4 and press M+. The display shows 100 and M is now 100.

  2. Second item

    Type 60 × 3 and press M+. The display shows 180 and M is now 280.

  3. Refund

    Type 15 × 2 and press M− (2nd, M+). The display shows 30 and M is now 250.

  4. Recall the total

    Press MR and = to see 250. You can also use it in a formula: M/5 gives 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       → −10
A chain of calculations typed on the keyboard, pressing Enter after each line

After = 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:

  1. 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".

  2. The arrow

    Type 5 → A (type -> for the arrow). The value on the left goes into the name on the right. Ans → T saves the last answer. Try 5 → A.

  3. Name first

    A := 5 does the same with the name first, which reads well for longer names such as rate := 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:

Using stored values
You enterResult
r := 2.5stores 2.5 in r (shown as 5/2)
π r^219.63495408
2π r15.70796327
5 → Astores 5 in A
3A + 116
rate := 0.04stores 0.04 in rate
1000(1 + rate)^51216.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.

The ScientifiCalc scientific calculator after the running-total example. The status bar shows a highlighted M indicator, the display shows M/5 = 50, and the keypad row M+, MR and STO is visible. The Variables tab on the right lists Ans = 50, M (memory) = 250, A = 5, r = 2.5 and rate = 0.04, each variable with a delete button, and Clear all at the bottom.
Memory M after the running-total example, with the M indicator lit and every stored value listed in the Variables tab.

What clears memory, Ans and variables

What each action clears on ScientifiCalc
ActionExpression lineAnsMemory MVariables
AC or EscClearedKeptKeptKept
A new calculationReplacedReplacedKeptKept
MCKeptKeptSet to 0Kept
Delete button in VariablesKeptKeptDeleted if you pick MOnly that one
Clear all in VariablesKeptClearedClearedAll cleared, with custom functions
Clear historyKeptKeptKeptKept
Closing the tab or reloadingClearedKeptKeptKept
Clearing the site data, or closing a private windowClearedClearedClearedCleared

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 memory keys on common models
CalculatorStore and recallWhat keeps or clears it
Casio fx-82MS, fx-95MS and similarM+ and M− (a SHIFT function); STO (a SHIFT function) and RCL with nine letters A to F, M, X and Y; AnsMemory and variables stay after AC and power-off; the Mcl option in the CLR menu clears them
TI-84 PlusSTO→, then ALPHA and a letter, then ENTER; recall with ALPHA and the letterA value stays until a new one is stored; graphing can overwrite X, T and θ
Desk calculatorM+, M−, MRCMRC recalls on the first press and clears on the second
ScientifiCalcM+, 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.

Frequently asked questions

What do M+, M−, MR and MC mean on a calculator?

They are the memory keys. M+ adds the displayed result to memory, M− subtracts it, MR (memory recall) brings the memory total back into a calculation, and MC (memory clear) sets memory to 0.

What does the Ans button do on a calculator?

Ans stands for answer. It holds the result of your last calculation, so you can use it in the next one without retyping it, for example Ans/4 or Ans^2 + 1. It changes every time you calculate something new.

What is the difference between Ans and M?

Ans is replaced automatically by every new result. M changes only when you press M+, M− or MC, so it is the right place for a running total that must survive several calculations.

How do I store a value in a calculator?

On ScientifiCalc, calculate the value, press STO and choose a letter from A to F, X or Y, or type 5 → A or rate := 0.04. On a Casio, use STO (a SHIFT function) and a letter. On a TI-84, press STO→, then ALPHA and a letter, then ENTER.

How many memories does the calculator have?

One independent memory M and one Ans, plus as many named variables as you need. The STO key offers the letters A to F, X and Y, and you can type any other name, such as rate or v_0.

Does AC clear the calculator memory?

No. AC clears only the expression line. Ans, M and your variables stay. On ScientifiCalc they also stay after you close the tab, because they are saved in your browser. To clear them, press MC for memory or use Clear all in the Variables tab.

Why did typing -5 not subtract 5 from my last answer?

On the keyboard, a leading minus is read as a negative sign so that you can start a new calculation with a negative number. To subtract from the last answer, type ans - 5 or press the − key on the keypad right after the result.

Tools on this page

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.