99testsStart a job

Test cases for a calculator (practice)

These calculator test cases are a classic QA practice and interview set: the four operations and order of operations, decimals and rounding, divide-by-zero, percentage and sign change, memory keys, clear and backspace, overflow and very large numbers, and rotation. Download them as CSV or Excel and use them to practise writing and running cases.

They assume a standard phone calculator app. This is a learning set — a simple, well-understood app where you can focus on writing clear steps, expected results and edge cases rather than on business logic.

26 test cases8 release-blocking (P1)0 need a real phoneUpdated 2026-12-03
Show26 of 26 cases shown
Download Excel

Basic arithmetic5

CAL-01

Addition of two numbers

P1functional
  1. Enter 2 + 3 =
  2. Read the result

Expected: The result is 5.

CAL-02

Subtraction

P1functional
  1. Enter 9 - 4 =

Expected: The result is 5.

CAL-03

Multiplication

P1functional
  1. Enter 6 x 7 =

Expected: The result is 42.

CAL-04

Division

P1functional
  1. Enter 20 / 4 =

Expected: The result is 5.

CAL-05

Result of a negative value

P2functional
  1. Enter 3 - 8 =

Expected: The result is -5, shown with a minus sign.

Order of operations2

CAL-06

Multiplication before addition

P1functional
  1. Enter 2 + 3 x 4 =

Expected: If the app honours precedence, the result is 14; if it is a simple sequential calculator, document 20 — verify against the intended design.

CAL-07

Parentheses change the result

P2functional
  1. Enter (2 + 3) x 4 =

Expected: The result is 20.

Decimals3

CAL-08

Add decimals

P1functional
  1. Enter 0.1 + 0.2 =

Expected: The result is 0.3, formatted to the app's precision (no raw floating-point artefact shown).

CAL-09

Rounding/precision is consistent

P2functional
  1. Enter 10 / 3 =

Expected: The result is 3.3333 rounded to the app's stated precision, consistently.

CAL-10

Multiple decimal points blocked

P2functional
  1. Try to enter 1.2.3

Expected: The app ignores the second decimal point; only one is accepted.

Divide by zero2

CAL-11

Division by zero is handled

P1functional
  1. Enter 5 / 0 =

Expected: The app shows an error (e.g. 'Cannot divide by zero') or 'Infinity' per design, and does not crash.

CAL-12

Zero divided by zero

P2functional
  1. Enter 0 / 0 =

Expected: The app shows the defined error/NaN state and recovers.

Percentage1

CAL-13

Percentage of a number

P2functional
  1. Enter 200 x 10 % =

Expected: The result follows the app's percentage rule (e.g. 20); verify against the intended behaviour.

Sign & special2

CAL-14

Sign change (+/-) toggles

P2functional
  1. Enter 5, press +/-

Expected: The displayed value becomes -5; pressing again returns 5.

CAL-15

Square root / special function

P3functional
  1. Enter 9, press the square-root key (if present)

Expected: The result is 3; square root of a negative shows the defined error.

Memory2

CAL-16

M+ stores and MR recalls

P2functional
  1. Compute 5, press M+
  2. Clear, press MR

Expected: MR recalls 5; M+ accumulates into memory correctly.

CAL-17

MC clears memory

P3functional
  1. Store a value, press MC, then MR

Expected: After MC, MR recalls 0 / empty.

Clear & edit2

CAL-18

C/AC clears the current entry/all

P1functional
  1. Enter a calculation, press C then AC

Expected: C clears the current entry; AC clears everything to 0 per design.

CAL-19

Backspace removes the last digit

P2functional
  1. Enter 123, press backspace

Expected: The display shows 12.

Chained operations2

CAL-20

Equals repeats the last operation

P3functional
  1. Enter 2 + 3 =, press = again

Expected: Per design, repeating = applies +3 again to give 8, or does nothing — verify against intended behaviour.

CAL-21

Operator after result continues the chain

P2functional
  1. Enter 2 + 3 =, then x 2 =

Expected: The calculator uses 5 as the starting value, giving 10.

Limits & overflow2

CAL-22

Very large number is handled

P2functional
  1. Multiply large numbers until the display limit

Expected: The app switches to scientific notation or shows an overflow state, without crashing.

CAL-23

Input length is capped

P3functional
  1. Type far more digits than the display can hold

Expected: Input stops at the max length; no overflow of the display or crash.

UI & orientation2

CAL-24

Buttons are tappable and labelled

P2ui
  1. Tap each key once

Expected: Every key responds, is correctly labelled, and has an adequate tap target.

CAL-25

Rotation preserves the current value

P2ui
  1. Enter a value, rotate the device

Expected: The current value and state are preserved; scientific layout appears in landscape if designed.

Accessibility1

CAL-26

Screen reader announces keys and result

P3accessibility
  1. Turn on TalkBack/VoiceOver
  2. Perform a calculation

Expected: Each key and the result are announced meaningfully.

300+ companies · 127,000+ bugs reported · 20,000 testers on real phones · since 2010 · see a sample report

Have an app to ship?

Run these cases on real phones

From ₹9,999 + GST, report in 3 business days. Our testers run your cases on the phones, laptops and browsers real Indian users own — on Jio, Airtel and Vi — and send back a verified pass/fail report.

Learning QA, or own this phone?

Earn by testing apps with 99tests

Join 20,000+ testers who run real apps on their own phones and get paid for every verified bug.

Email me new test case sets each month

One email a month. Unsubscribe anytime.

Questions

About this practice set

Why test a calculator?

A calculator is the standard exercise for learning to write test cases because the rules are known and the edge cases are rich: divide-by-zero, floating-point rounding, operator precedence, overflow and input limits. It teaches you to separate the happy path from the edges and to write a precise expected result.

Is this a real 99tests flow?

It is a practice set in our Practice group, alongside pen, ATM and lift. Use it to learn; for real app releases, see the app flows like login, UPI payment and checkout.

Related flows

Test these next

Run these cases on real phones.

99tests runs your test cases on the phones, laptops and browsers your users own — verified pass/fail report in 3 business days.