Scientific Calculator

Supporting basic operations, trigonometric functions, logarithms and other mathematical functions

Calculation History

📖 User Guide

Free online scientific calculator - Powerful functionality, completely local computation, protect privacy

⚡ Quick Start

New users can start here:

1
Basic Operations

Click numbers and operators (+, −, ×, ÷)

2
Press Equals

Click = or press Enter to see the result

3
Enable Scientific Mode

Check "Scientific Calculator" to use advanced functions

4
View History

All calculations are automatically saved to history

🔢 Basic Operations

Input and Calculation
  • Number Input: Click 0-9 buttons or use keyboard
  • Four Operations: Support + (add), (subtract), × (multiply), ÷ (divide)
  • Modulo: % shows remainder (e.g., 10 % 3 = 1)
  • Decimal Point: Use for decimal numbers, only one decimal point per number
Control and Clear
  • DEL: Delete the last digit or symbol
  • C: Clear all content and start over
  • Parentheses ( ): Control priority in complex expressions
Calculation Rules
  • Automatically follows mathematical operator precedence: parentheses → exponents → multiplication/division → addition/subtraction
  • Support unlimited nested parentheses
  • Floating point calculation automatically rounds to 10 decimal places precision

🔬 Scientific Functions

Check the "Scientific Calculator" below to enable scientific mode. You can click buttons to auto-insert or manually type functions.

📐 Basic Functions
  • - Square root | Example: √9 = 3
  • - Square | Example: 5² = 25
  • - Cube | Example: 2³ = 8
  • 1/x - Reciprocal | Example: 1/2 = 0.5
  • |x| - Absolute value | Example: |-5| = 5
📊 Trigonometric Functions
  • sin/cos/tan - Sine/Cosine/Tangent
  • sin⁻¹/cos⁻¹/tan⁻¹ - Inverse trigonometric functions
  • sinh/cosh/tanh - Hyperbolic trigonometric functions
  • 💡 In degree mode, input is in degrees (e.g., sin(30) = 0.5). Check the degree/radian toggle below to switch to radians
📈 Logarithm and Exponential
  • log(x) - Common logarithm (base 10) | log(100) = 2
  • ln(x) - Natural logarithm (base e) | ln(e) = 1
  • e^x - e to the power of x | e^2 ≈ 7.389
  • n! - Factorial (integer only) | 5! = 120
🎯 Mathematical Constants
  • π - Pi | π ≈ 3.14159
  • e - Euler's number | e ≈ 2.71828
  • 💡 Click the button to directly insert the constant value, can be used anywhere in the formula

💾 Memory Functions

Used to temporarily store intermediate calculation results.

  • MC - Memory Clear - Clear the stored value
  • MR - Memory Recall - Load the stored value to display
  • 💡 Use Case: Calculate a middle result → MC to clear → Calculate another part → MR to recall previous result for continued calculation

📋 Calculation History

  • Auto Save: Every time you press =, the expression and result are automatically saved to history
  • Quick Load: Click on a history item and the last result of that session loads into the calculator
  • Latest First: History keeps at most 10 sessions, new calculations appear first
  • Clear History: Click "Clear History" to remove all records (cannot be undone)
  • 💡 Session is a series of consecutive calculations, starts a new session when restarting the calculator or pressing C

⌨️ Keyboard Shortcuts

0-9、.
Input numbers and decimal point
+ − * /
Four basic operators
Enter or =
Calculate result
Backspace
Delete last digit (DEL)
Escape
Clear all (C)

📚 Usage Examples

Basic Calculation
2 + 3 × 4
= 14

Automatically respects operator precedence

Parentheses Priority
(2 + 3) × 4
= 20

Parentheses calculated first

Square Root
√16
= 4

Click √ button then input 16

Trigonometric
sin(30°)
= 0.5

Degree mode, sine of 30 degrees

Logarithm
log(100)
= 2

Base 10 logarithm

Complex Expression
√(3² + 4²)
= 5

Pythagorean theorem calculation

Factorial
5!
= 120

Click n! button then input 5

Percentage
200 × 15%
= 30

Calculate percentage value

🚀 Advanced Tips

Continuous Calculation
  • After calculation completes (press =), the result automatically becomes the starting point for new expression
  • Can directly input operator to continue, no need to clear
  • Example: First calculate 10 + 5 = 15, then input × 2 = 30
Degrees and Radians
  • In scientific mode, default is degree mode (input 30 for 30 degrees)
  • Click "Radians" button below to switch to radian mode (input π/6, etc.)
  • Inverse trigonometric function output unit matches current mode
Manual Function Input
  • Besides clicking buttons, you can also directly type functions in the input box
  • Supported forms: sqrt(x), sin(x), log(x), etc.
  • Can combine: sqrt(sin(45)), etc.
Improve Accuracy
  • Avoid continuous rounding errors, try to group complex expressions with parentheses
  • Final result automatically rounds to 10 decimal places
  • For very large or small numbers, scientific notation displays automatically

❓ Frequently Asked Questions

Q: Why are trigonometric results different from expected?

A: Check the degree/radian mode setting. When scientific calculator is enabled, the degree/radian toggle button appears below. Default is degree mode.

Q: Why does the calculation result show many decimal places?

A: This is normal floating-point representation. The final display automatically rounds, and if needed to adjust, you can copy the result and handle manually.

Q: Can I save calculation results locally?

A: Calculation history is automatically saved to browser local storage. Clearing browser data or using private mode will clear history. You can use screenshots or copy feature to save.

Q: How many digits does the calculator support?

A: Supports arbitrary precision input, JavaScript number type precision is about 15 significant digits, excess parts auto-round.

Q: How do I calculate percentages?

A: Use the % symbol directly. For example: 100 + 20% calculates 100 plus 20% (result 120); or 200 × 15% calculates 15% of 200 (result 30).

💡 Usage Tips

  • Clear history regularly: History keeps only 10 sessions, older ones auto-delete when exceeded
  • Use keyboard: Learn shortcuts for faster calculation — especially Enter, Backspace, Escape
  • Break down complex calculations: Divide complex multi-step calculations into independent steps, save results in history
  • Check expression before calculating: The expression shown before pressing = is exactly what will be calculated
  • Use with peace of mind: All calculations execute locally, never uploaded to any server