Scientific Calculator
Free online scientific calculator with trigonometric, logarithmic, exponential and factorial functions. Supports degree/radian, memory, parentheses and history.
Press = to see results here.
How Does the Formula Work?
The MathGyro Scientific Calculator provides a full-featured computing environment for students, engineers, and anyone working with advanced mathematics. It supports trigonometric functions in both degree and radian mode, logarithmic and exponential operations, powers, roots, factorial, percentage calculations, constants, memory storage, and full keyboard input. All computations run locally in your browser with no data sent to any server.
Logarithmic: log (base 10), ln (natural), log2
Powers: xⁿ, √x (square root), ∛x (cube root)
Other: n! (factorial), % (percentage), π, e
Memory: MC (clear), MR (recall), M+, M−
Modes: DEG (degrees) / RAD (radians)
Input: Buttons + full keyboard support
Trigonometric Functions
The calculator supports all six standard trigonometric functions. Direct functions (sin, cos, tan) take an angle and return a ratio, while inverse functions (sin⁻¹, cos⁻¹, tan⁻¹) take a ratio and return an angle. The degree/radian toggle determines how angles are interpreted and displayed. In DEG mode, sin(90) returns 1 because 90 degrees is a right angle. In RAD mode, you would enter sin(1.5708) for the same result. The default mode is degrees, which is standard for most educational contexts. Engineering and physics applications often prefer radians. The toggle button in the top-left corner switches between modes instantly, and the current mode is always visible on the display.
Logarithmic and Exponential Functions
Three logarithmic bases are available: log (base 10, common logarithm), ln (base e, natural logarithm), and log2 (base 2, binary logarithm). Common logarithm is used in chemistry (pH scale), acoustics (decibels), and earthquake measurement (Richter scale). Natural logarithm appears throughout calculus, compound interest, and exponential growth modeling. Binary logarithm is essential in computer science for algorithm complexity analysis. The calculator also supports the exponential constant e (approximately 2.71828) as a direct input, and arbitrary exponents using the xⁿ button.
Memory and Workflow
The memory system stores a single numeric value across calculations. MC clears memory to zero, MR recalls the stored value into the current expression, M+ adds the current result to memory, and M- subtracts it. A small "M" indicator appears when memory contains a non-zero value. The ANS button inserts the last computed result into the expression, enabling efficient calculation chains without manual re-entry. Combined with parentheses for grouping, these features support complex multi-step computations that would otherwise require pen and paper for intermediate values.
Keyboard Support and Accessibility
The calculator responds to keyboard input for faster operation. Number keys (0-9), decimal point, and standard operators (+, -, *, /) work directly. Enter evaluates the expression, Backspace deletes the last character, and Escape clears everything. The caret symbol (^) enters exponentiation mode, and percent (%) appends the percentage operator. This dual-input approach means you can use the visual button grid for discovering functions and the keyboard for rapid data entry, combining the best of both interaction modes.
Precision and Limitations
The calculator uses JavaScript 64-bit floating-point arithmetic (IEEE 754), providing approximately 15-17 significant digits of precision. This is sufficient for virtually all practical scientific and engineering calculations. Factorial computation supports values up to 170! (the largest factorial representable in 64-bit floating point). Results exceeding 10^15 or smaller than 10^-10 are automatically displayed in scientific notation. The calculator handles edge cases gracefully: division by zero returns infinity, invalid operations show "Error", and very small floating-point artifacts (like sin(180°) returning 1.22e-16 instead of exactly 0) are inherent to binary floating-point representation.
Educational Applications
This calculator serves as a practical companion for mathematics courses from trigonometry through calculus and beyond. Students can verify homework answers, explore function behavior by trying different inputs, and build intuition for how mathematical functions transform values. The expression display shows the complete input, making it easy to spot errors before evaluating. The history feature records past calculations for review, which is particularly useful during problem sets where results from earlier steps feed into later ones. Teachers can use the calculator for classroom demonstrations, showing how changing angles affects trigonometric values or how logarithmic scaling compresses large ranges.
Common Use Cases
Engineering students use the calculator for circuit analysis (impedance calculations require trigonometric functions), structural mechanics (force vector decomposition), and signal processing (Fourier transform components). Physics students compute projectile trajectories using sin and cos, calculate wave frequencies with logarithms, and determine orbital mechanics with exponential functions. Chemistry students rely on log for pH calculations (pH = -log[H+]) and ln for reaction rate constants (Arrhenius equation). Computer science students use log2 for algorithm complexity analysis and binary number system conversions. Even in everyday life, the percentage function simplifies tax calculations, tip splitting, and discount computations.
Tips & Recommendations
Type numbers and operators directly. Enter = evaluate, Esc = clear, Backspace = delete.
Toggle between degrees and radians for trig functions. Default is degrees. Mode shown on display.
MC/MR/M+/M- for storing intermediate values. "M" indicator shows when memory is active.
Trig, log, ln, log2, sqrt, cbrt, powers, factorial, pi, e, percentage. All in one tool.
Frequently Asked Questions
What functions does this scientific calculator support?
Trigonometric (sin, cos, tan and their inverses), logarithmic (log, ln, log2), square root, cube root, exponents, factorial, percentage, constants (pi, e), parentheses, memory (MC/MR/M+/M-), and degree/radian toggle.
How do I switch between degrees and radians?
Click the DEG button in the top-left of the calculator. It toggles between DEG (degrees) and RAD (radians). The current mode is always displayed. Default is degrees.
Can I use keyboard input?
Yes. Number keys, operators (+, -, *, /), parentheses, Enter for equals, Backspace to delete, and Escape to clear all work from your keyboard.
What does ANS do?
ANS inserts the result of the last calculation into the current expression. Useful for chaining calculations without retyping the previous result.
How is factorial calculated?
n! computes the product of all positive integers up to n. Maximum input is 170 (170! is the largest factorial JavaScript can represent). For example, 5! = 120.
Recent Calculations
No calculations yet