Elecmetric

Scientific Calculator Online

Free online scientific calculator for electrical engineers and students: trigonometry, logarithms, powers, roots, complex numbers and phasors. Calculate. Check. Understand.

Mode
Angle
12.5

Try

History

Results you confirm with = appear here. Select one to use its expression again. History stays in this page and is not stored.

    Worksheet

    Press Add to worksheet to keep a result with its expression, settings and a note of your own. When you are done, print the worksheet or save it as a PDF. The worksheet stays in this page and is not stored, so print or copy it before you close the page.

    How to use it

    Standard mode is a full scientific calculator: brackets and operator precedence, trigonometry, logarithms, powers and roots, factorials, constants, memory and the previous answer. Engineering mode adds complex numbers, rectangular and polar form, phasor arithmetic and SI prefixes for electrical work. Type on the keyboard or use the keypad. Press Enter or = to confirm a result and add it to the history, and use Add to worksheet to collect results with notes for printing or saving as a PDF.

    Functions and keys

    KeyWhat it doesExampleResult
    sin, cos, tanSine, cosine and tangent of an angle in the angle mode you choosesin(30)0.5
    sin⁻¹, cos⁻¹, tan⁻¹Inverse functions: the angle, in the active angle unitasin(0.5)30
    atan2Angle of the point (x, y) in the correct quadrant, in the active angle unit: atan2(y, x)atan2(1,-1)135
    sinh, cosh, tanhHyperbolic functions and their inverses (asinh, acosh, atanh)sinh(1)1.175201194
    log, lnLogarithm base 10 and natural logarithmlog(1000)3
    log₂, logₓLogarithm base 2, and to any base: logb(number, base)logb(81,3)4
    eˣ, xʸExponential and powers, evaluated right to left2^101024
    √, ∛, ʸ√xSquare root, cube root and nth root: root(number, n)root(32,5)2
    n!Factorial of a whole number from 0 to 1705!120
    nCr, nPrCombinations and permutationsncr(5,2)10
    modRemainder, with the sign of the divisormod(17,5)2
    %Divides by 100200*15%30
    abs, floor, ceil, roundAbsolute value and rounding to a whole numberabs(-7.5)7.5
    1/xReciprocal of the whole expressioninv(8)0.125

    Every result in this table is calculated by the same engine as the calculator above.

    Angle modes

    The angle mode changes how trigonometric functions read their input. The same angle gives the same answer in each mode:

    ModeFull circleExampleResult
    DEG360°sin(30)0.5
    RAD2π radsin(pi/6)0.5
    GRAD400 gradsin(100/3)0.5

    Switching mode does not convert numbers you have already typed. A degree sign written after a value, as in 30°, always means 30 degrees and is converted to the active unit.

    Order of operations

    OrderRuleExampleResult
    1Brackets and function arguments(2+3)*420
    2Factorial, percent and degree sign, applied to the value before them3!^236
    3Power, evaluated right to left2^3^2512
    4Unary minus, so it applies after a power-2^2-4
    5Polar angle ∠ (Engineering mode)2∠30*35.19615 + j3
    6Multiply and divide, left to right, including a multiplication sign left out10/2*525
    7Add and subtract, left to right2+3*414

    Where a rule could be read two ways, the calculator follows the usual convention for scientific calculators: -2^2 is -4, and 2^3^2 is 2^9. Use brackets when in doubt. A product written without a sign, as in 3(4+5) or 2sin(30), is read as multiplication. The Implicit multiplication setting changes how a product with the sign left out ranks against division: by default 1/2π is (1/2)·π, and the other choice reads it as 1/(2π) so that 1/2πfC means 1/(2πfC). Explicit signs are never affected: 1/2*pi is always (1/2)·π. Two numbers side by side with a space, as in 1 000, are rejected rather than multiplied, so a thousands separator cannot silently change an answer.

    Engineering mode: impedance example

    Enter an impedance of Z = 10 + j15 Ω and the calculator returns its parts, its magnitude |Z| = √(10² + 15²) and its phase angle θ = tan⁻¹(15/10):

    Real component10 Ω
    Imaginary component+15 Ω
    Magnitude18.028 Ω
    Phase angle56.31°
    Representation18.028 ∠ 56.31°
    ReIm (j)θ = 56.31°|Z| = 18.028 Ω
    1. Rectangular form: Z = 10 + j15 Ω
    2. Magnitude: |Z| = √(10² + 15²) = 18.028 Ω
    3. Phase angle: θ = atan2(15, 10) = tan⁻¹(15/10) = 56.31°
    4. Polar form: Z = 18.028 ∠ 56.31° Ω

    More examples, with results shown to 6 significant digits:

    ExpressionRectangularPolar
    (10+j15)*(5-j2)80 + j5597.0824 ∠ 34.5085°
    230∠30199.186 + j115230 ∠ 30°
    1/(j*2*pi*50*100u)0 - j31.83131.831 ∠ -90°
    230*(j20)/(10+j20)184 + j92205.718 ∠ 26.5651°
    sqrt(-4)0 + j22 ∠ 90°

    Complex results from the trigonometric, logarithmic, power and root functions are available in Engineering mode, and a negative number under a square root gives an imaginary result instead of an error. Phase angles follow the angle mode and are normally read in degrees. par(Z1, Z2) gives impedances in parallel.

    Limits and accuracy

    Cross-check: 756 reference cases, calculated with Python’s math and cmath modules, written separately from this calculator (they cover each angle mode, inverse and hyperbolic functions, logarithms, powers and roots, factorials, operator order, error cases, complex arithmetic, polar input and SI prefixes), and 14 polar conversions agree with it. The calculator’s own tests also cover the standard values in the table below.

    TestExpected result
    sin(30°)0.5
    cos(60°)0.5
    tan(45°)1
    log(1000)3
    ln(e)1
    √14412
    5!120
    2³8
    1/0Error: division by zero

    Frequently asked questions

    How does this calculator read what I type?

    It uses its own expression parser, written for this page. It does not use eval or run your text as code, and nothing you type leaves your browser. Brackets, operator order and functions follow the usual rules of mathematics.

    How do I switch between degrees, radians and gradians?

    Choose DEG, RAD or GRAD above the keypad. It sets how sin, cos and tan read their input and the unit of asin, acos and atan results. You can also write the degree sign after a value, as in sin(30°), and it is converted to the active unit.

    Why does sin(180) show 0 and not a tiny number?

    In degree and gradian mode the calculator uses exact values at multiples of 30 and 45 degrees, so sin(30) is exactly 0.5 and cos(90) is exactly 0. In radian mode a result that is only rounding noise, such as sin(π), is shown as 0.

    How do I enter complex numbers and polar values?

    Switch to Engineering mode. Write the imaginary unit as j, for example 10+j15. For polar input write the magnitude, the ∠ sign and the angle, for example 230∠30, or type 230<30. The angle follows the angle mode. Results show as rectangular and polar form, with a phasor diagram and the working.

    What do k, M, m, µ, n and p do in Engineering mode?

    Written directly after a number they are SI prefixes: 4.7k is 4,700, 100u is 100 microunits (0.0001) and 33n is 33 nano. They are not read as prefixes when a letter follows, so 3pi is 3 times pi.

    What does the % key do?

    It divides the value before it by 100, so 200*15% is 30. It does not add a percentage to a total: 50+10% is 50.1. For 50 plus 10 percent write 50*(1+10%).

    How many digits are right?

    Calculations use double-precision numbers, which hold about 15 to 17 significant digits. The display rounds to the number of significant digits you choose, 10 by default. Results can differ from exact mathematics in the last digits, for example 0.1+0.2 is shown as 0.3.

    How do I use a value again, such as a frequency?

    Type f=50 and press Enter. The name f then stands for 50 in every later calculation until you clear it or close the page. Names are letters only, up to 20 variables, and the names of functions and constants such as pi, e, i, j and ans are not allowed (i and j are both the imaginary unit, so i cannot stand for current; use a name such as ia). A name is read as one word, so write f c or f*c, not fc. A variable that holds a complex number needs Engineering mode.

    What does the Implicit multiplication setting do?

    It decides how 1/2π is read. With the default, a product with the sign left out ranks with multiply and divide, so 1/2π is (1/2)·π. With the other choice the product binds first, so 1/2π is 1/(2π), which is how the reactance formula 1/2πfC is usually meant. Use brackets to be sure.

    Does it keep my calculations?

    No. The history, the worksheet and any variables are held in the page and disappear when you close it. The Copy link button puts your expression in the link, so whoever opens the link sees the same calculation.

    Can I keep my results as a worksheet or a PDF?

    Yes. After a result appears, press Add to worksheet. Each entry keeps the expression, the result, the angle mode, the number of digits and any variable values it uses, and you can type a note beside it. Give the worksheet a title, then press Print or save as PDF and choose Save as PDF in the print window, or press Copy as text. The worksheet is built in your browser and is not stored or sent anywhere, so it is gone when you close the page.

    Tell us how to improve this page

    This opens your email app. Nothing is sent until you press send.