cocolator

General calculators

Calculator

A standard calculator for plus, minus, times and divide with support for decimals, percentages and parentheses.

0
 

Runs in your browser with no account and no stored data

How it works

How to use

Tap the keypad or use your keyboard to build an expression. Use C to clear, ⌫ to delete the last character, and = to evaluate. Decimals, percentages and parentheses are all supported.

Formula

Standard order of operations: parentheses first, then multiply and divide, then add and subtract. A trailing % converts the preceding number to its decimal form (50% = 0.5).

Example

(12 + 8) × 5 = 100. 200 − 25% = 199.75. 1,500 × 1.25 = 1,875. 7 ÷ 0 shows an error instead of crashing.

When it helps

Quick everyday math when a phone calculator is buried, double-checking a receipt, doing homework, or working through a multi-step calculation in one place.

What do you want to do next?

Need to apply percentages, VAT, or a discount to a number? Jump to the percentage, VAT, or discount calculator for a ready-made formula.

FAQ

How is the expression evaluated?+

The calculator parses the expression with standard math precedence: parentheses first, then × and ÷, then + and −. There is no eval. The parser only understands numbers and the supported operators.

How does the % button work?+

A trailing percent treats the previous number as a fraction. 200 − 25% becomes 200 − 0.25 = 199.75. Between two numbers, % acts as the modulo (remainder) operator.

Can I use my keyboard?+

Yes. Digits, + − * / % ( ) . , Enter, Backspace and Escape all work. * shows as × and / as ÷ on screen.

What happens when I divide by zero?+

The calculator shows a friendly 'Invalid expression' message instead of returning Infinity or crashing. Edit or clear the expression and try again.

Why is my long decimal rounded?+

Results are formatted with up to 10 decimal places. Internally calculations use standard JavaScript numbers, so very large values can lose precision in the last digits.