User manual · Reference

Scientific calculator functions: the complete list

All 80 scientific calculator functions, from log, ln and sin to nCr and factorial, with what each button does, the syntax and a worked example.

By Hira Noor, mathematicianUpdated
Short answerScientific calculator functions are the operations beyond +, −, × and ÷: powers and roots, logarithms, trigonometry, factorials and combinations, statistics and more. The ScientifiCalc scientific calculator understands 80 functions in 14 groups. The dozen most people need are x^y, sqrt, log, ln, sin, cos, tan and their inverses, !, nCr, abs and mean, each with an example in the first table below. Type the name and the value in parentheses, such as log(1000), which gives 3.

Try it in one click: sin(30), log(1000) or nCr(52, 5). Jump to: core functions, calculator buttons, trigonometry, statistics, order of operations or common mistakes. The graphing calculator and math solver read the same syntax.

The 12 functions most people use

This short list covers most homework and exam questions. Every result was produced by the calculator in its default settings, degree mode for angles.

Core scientific calculator functions with an example of each
FunctionWhat to typeExampleResult
Powerx^y2^101024
Square rootsqrt(x) or √xsqrt(144)12
Common logarithm (base 10)log(x)log(1000)3
Natural logarithm (base e)ln(x)ln(e^3)3
Sine, cosine, tangentsin(x), cos(x), tan(x)sin(30)0.5
Inverse sine (sin⁻¹)asin(x)asin(0.5)30
Factorialx!10!3628800
Combinations (nCr)nCr(n, r)nCr(52, 5)2598960
Permutations (nPr)nPr(n, r)nPr(10, 3)720
Absolute valueabs(x) or |x|abs(-7.5)7.5
Mean (average)mean(a, b, …)mean(2, 4, 9)5
Sample standard deviationstdev(a, b, …)stdev(2, 4, 4, 4, 5, 5, 7, 9)2.138089935

What the buttons on a scientific calculator do

Handheld calculators print each function on a key, often with a second function above it that you reach with SHIFT or 2nd. The table matches common key labels to what they do and what to type here, so you can follow a textbook or a Casio, Sharp or TI worked example.

Common calculator keys and their typed equivalents
KeyWhat it doesType hereExample
SHIFT or 2ndSwitches the next key to the function printed above itThe name of that function2nd then sin gives sin⁻¹
xʸ or ^Raises x to the power y^5^3 = 125
x², x³, x⁻¹Square, cube, reciprocal², ³, ⁻¹3⁻¹ = 1/3
√, ∛, ʸ√xSquare, cube and nth rootsqrt, cbrt, root(x, n)root(32, 5) = 2
log and 10ˣBase-10 logarithm and its inverselog(x), 10^x10^2 = 100
ln and eˣNatural logarithm and its inverseln(x), e^xe^1 = 2.718281828
sin, cos, tan and sin⁻¹, cos⁻¹, tan⁻¹Trigonometric functions and their inversessin, asin and so ontan(45) = 1
DRG or MODEChooses degrees, radians or gradiansThe angle setting on the keypadsin(30) = 0.5 in degrees
EXP, EE or ×10ˣEnters scientific notatione or ×10^1.5e3 = 1500
x!, nCr, nPrFactorial, combinations, permutations!, nCr, nPrnCr(5, 2) = 10
%Divides by 100%200×15% = 30
AnsReuses the last resultAnsAns^2
M+, M−, MR, MC, STOMemory: add, subtract, recall, clear, storeKeypad keys or 5 -> ASee memory and variables
S⇔DSwitches a result between fraction and decimalThe S⇔D key1/3 ↔ 0.3333333333

How to read this reference

  • Names are not case-sensitive. sin, Sin and SIN are the same function, and ncr works like nCr. Constant names are case-sensitive, so type pi, not PI.
  • Aliases are listed under the syntax. For example avg and average both mean mean, and arcsin means asin.
  • Optional arguments are shown in the syntax: log(x) is base 10, while log(x, b) uses base b. Distribution parameters μ and σ default to 0 and 1.
  • Angle units. Trigonometric examples assume degree mode. Functions such as sin read their argument in the current angle unit, and inverse functions such as asin, atan2 and arg return their result in it. Inside diff, integral and limit, radians are always used.
  • Argument separator. Separate arguments with commas: log(8, 2). With the decimal comma setting, use semicolons instead: log(8; 2).
  • Parentheses are optional for a single argument: sin 30, ln 2 and √16 work. See the syntax notes below for how far such an argument reaches.

The 14 tables below are the complete scientific calculator functions list: all 80 functions, each with its syntax, any other names it accepts, what it does and a worked example with the result. Type in the Find a function box to narrow them down, or use Print or save as PDF for a copy without the site menus.

Showing all 80 functions.

Powers and roots

Powers and roots functions
SyntaxWhat it doesExample
sqrt(x) or √x
Also: √
Principal square root.sqrt(144) = 12
cbrt(x) or ∛x
Also: ∛
Real cube root (negative inputs give negative results).cbrt(-27) = -3
root(x, n)The nth root of x. Odd roots of negative numbers are real.root(32, 5) = 2
hypot(a, b, …)Square root of the sum of squares, √(a² + b² + …).hypot(3, 4) = 5

Exponentials and logarithms

Exponentials and logarithms functions
SyntaxWhat it doesExample
exp(x)e raised to the power x.exp(1) = 2.718281828
ln(x)Natural logarithm (base e).ln(e^3) = 3
log(x), log(x, b) or log_b(x)Common logarithm (base 10); with a second argument, the logarithm of x in base b.log(8, 2) = 3
log2(x)Binary logarithm (base 2).log2(1024) = 10
log10(x)
Also: lg
Common logarithm (base 10).log10(0.001) = -3

Trigonometry

Trigonometry functions
SyntaxWhat it doesExample
sin(x)Sine of an angle in the current angle unit.sin(30) = 0.5 (degree mode)
cos(x)Cosine of an angle in the current angle unit.cos(60) = 0.5 (degree mode)
tan(x)Tangent of an angle. Undefined at odd multiples of 90°.tan(45) = 1 (degree mode)
sec(x)Secant, 1/cos(x).sec(60) = 2 (degree mode)
csc(x)
Also: cosec
Cosecant, 1/sin(x).csc(30) = 2 (degree mode)
cot(x)Cotangent, cos(x)/sin(x).cot(45) = 1 (degree mode)
asin(x) or sin^-1(x)
Also: arcsin
Inverse sine, returned in the current angle unit (range −90° to 90°).asin(0.5) = 30 (degree mode)
acos(x) or cos^-1(x)
Also: arccos
Inverse cosine (range 0° to 180°).acos(0) = 90 (degree mode)
atan(x) or tan^-1(x)
Also: arctan
Inverse tangent (range −90° to 90°).atan(1) = 45 (degree mode)
atan2(y, x)Angle of the point (x, y) measured from the positive x-axis, using the signs of both coordinates (range −180° to 180°).atan2(1, -1) = 135 (degree mode)
acot(x)
Also: arccot
Inverse cotangent, atan(1/x), with acot(0) = 90°.acot(1) = 45 (degree mode)
asec(x)
Also: arcsec
Inverse secant, acos(1/x).asec(2) = 60 (degree mode)
acsc(x)
Also: arccsc
Inverse cosecant, asin(1/x).acsc(2) = 30 (degree mode)

Hyperbolic functions

Hyperbolic functions functions
SyntaxWhat it doesExample
sinh(x)Hyperbolic sine, (eˣ − e⁻ˣ)/2.sinh(1) = 1.175201194
cosh(x)Hyperbolic cosine, (eˣ + e⁻ˣ)/2.cosh(0) = 1
tanh(x)Hyperbolic tangent, sinh(x)/cosh(x).tanh(0.5) = 0.4621171573
sech(x)Hyperbolic secant, 1/cosh(x).sech(0) = 1
csch(x)Hyperbolic cosecant, 1/sinh(x).csch(1) = 0.8509181282
coth(x)Hyperbolic cotangent, cosh(x)/sinh(x).coth(1) = 1.313035285
asinh(x)
Also: arsinh, arcsinh
Inverse hyperbolic sine.asinh(1) = 0.8813735870
acosh(x)
Also: arcosh, arccosh
Inverse hyperbolic cosine (x ≥ 1).acosh(2) = 1.316957897
atanh(x)
Also: artanh, arctanh
Inverse hyperbolic tangent (−1 < x < 1).atanh(0.5) = 0.5493061443

Angles

Angles functions
SyntaxWhat it doesExample
x° or deg(x)Marks an angle as degrees and converts it to the current angle unit.180° (in radian mode) = 3.141592654
rad(x)Marks an angle as radians and converts it to the current angle unit.rad(pi) (in degree mode) = 180
grad(x)
Also: gon
Marks an angle as gradians (400 to a full turn) and converts it to the current unit.grad(100) (in degree mode) = 90

Rounding and parts

Rounding and parts functions
SyntaxWhat it doesExample
abs(x) or |x|Absolute value; for a complex number, its modulus.abs(-7.5) = 7.5
sign(x)
Also: sgn
Sign of x: −1, 0 or 1.sign(-3) = -1
floor(x)Greatest integer less than or equal to x.floor(-2.5) = -3
ceil(x)
Also: ceiling
Least integer greater than or equal to x.ceil(2.1) = 3
round(x) or round(x, n)Rounds half away from zero, to n decimal places (negative n rounds to tens, hundreds…).round(2.675, 2) = 2.68
trunc(x) or int(x)
Also: int
Integer part of x (rounds toward zero).trunc(-4.8) = -4
frac(x)Fractional part of x, x − trunc(x).frac(3.25) = 0.25

Number theory

Number theory functions
SyntaxWhat it doesExample
mod(a, n)Remainder of a ÷ n, taking the sign of n (floored division).mod(-7, 3) = 2
rem(a, n)Remainder of a ÷ n, taking the sign of a (truncated division).rem(-7, 3) = -1
gcd(a, b, …)Greatest common divisor of whole numbers.gcd(84, 126) = 42
lcm(a, b, …)Least common multiple of whole numbers.lcm(4, 6, 10) = 60

Combinatorics

Combinatorics functions
SyntaxWhat it doesExample
x! or factorial(x)
Also: fact
n! = 1 × 2 × … × n. Non-integers use Γ(x + 1).10! = 3628800
nCr(n, r)
Also: ncr, binomial, choose, comb
Combinations: ways to choose r items from n when order does not matter.nCr(52, 5) = 2598960
nPr(n, r)
Also: npr, perm
Permutations: ordered arrangements of r items chosen from n.nPr(10, 3) = 720

Statistics

Statistics functions
SyntaxWhat it doesExample
mean(x₁, x₂, …)
Also: avg, average
Arithmetic mean of the arguments.mean(2, 4, 9) = 5
median(x₁, x₂, …)Middle value of the sorted arguments.median(7, 1, 3, 10) = 5
stdev(x₁, x₂, …)
Also: sd, stdevs
Sample standard deviation (divides by n − 1).stdev(2, 4, 4, 4, 5, 5, 7, 9) = 2.138089935
stdevp(x₁, x₂, …)
Also: sdp
Population standard deviation (divides by n).stdevp(2, 4, 4, 4, 5, 5, 7, 9) = 2
variance(x₁, x₂, …)
Also: var
Sample variance (divides by n − 1).variance(1, 2, 3, 4) = 1.666666667
variancep(x₁, x₂, …)
Also: varp
Population variance (divides by n).variancep(1, 2, 3, 4) = 1.25
min(x₁, x₂, …)Smallest argument.min(4, -2, 9) = -2
max(x₁, x₂, …)Largest argument.max(4, -2, 9) = 9
total(x₁, x₂, …)Sum of the arguments. For a sum over an index, use sum().total(1.5, 2.5, 6) = 10

Probability distributions

Probability distributions functions
SyntaxWhat it doesExample
normalpdf(x, μ, σ)
Also: normpdf
Normal probability density at x (μ = 0, σ = 1 if omitted).normalpdf(0) = 0.3989422804
normalcdf(lower, upper, μ, σ)
Also: normcdf
Probability that a normal variable lies between lower and upper. Use -inf or inf for open bounds.normalcdf(-1.96, 1.96) = 0.9500042097
invnorm(p, μ, σ)
Also: invNorm, norminv
Value with left-tail area p under the normal curve.invnorm(0.975) = 1.959963985
binompdf(n, p, k)Binomial probability of exactly k successes in n trials.binompdf(10, 0.5, 3) = 0.1171875
binomcdf(n, p, k)Binomial probability of at most k successes in n trials.binomcdf(10, 0.5, 3) = 0.171875
poissonpdf(λ, k)Poisson probability of exactly k events when the mean is λ.poissonpdf(3, 2) = 0.2240418077
poissoncdf(λ, k)Poisson probability of at most k events when the mean is λ.poissoncdf(3, 2) = 0.4231900811

Special functions

Special functions functions
SyntaxWhat it doesExample
gamma(x)Gamma function Γ(x); Γ(n) = (n − 1)! for whole n.gamma(0.5) = 1.772453851
lngamma(x)
Also: lgamma
Natural logarithm of |Γ(x)|, useful when Γ(x) overflows.lngamma(200) = 857.9336698
beta(a, b)Beta function B(a, b) = Γ(a)Γ(b)/Γ(a + b) for positive a and b.beta(2, 3) = 0.08333333333
erf(x)Error function.erf(1) = 0.8427007929
erfc(x)Complementary error function, 1 − erf(x).erfc(1) = 0.1572992071

Complex numbers

Complex numbers functions
SyntaxWhat it doesExample
re(z)
Also: real
Real part of z.re(3+4i) = 3
im(z)
Also: imag
Imaginary part of z.im(3+4i) = 4
conj(z)Complex conjugate of z.conj(3+4i) = 3 − 4i
arg(z)
Also: angle
Argument (angle) of z in the current angle unit, from −180° to 180°.arg(1+i) = 45 (degree mode)

Calculus

Calculus functions
SyntaxWhat it doesExample
diff(f, x, a)
Also: derivative
Derivative of f with respect to x, evaluated at x = a. Angles are always in radians inside calculus functions.diff(x^3, x, 2) = 12
integral(f, x, a, b)
Also: integrate
Definite integral of f from x = a to x = b (adaptive Gauss–Kronrod quadrature; a or b may be ±inf).integral(x^2, x, 0, 3) = 9
sum(f, k, a, b)
Also: Σ
Sum of f for k = a, a + 1, …, b (whole-number bounds, up to 1,000,000 terms).sum(k^2, k, 1, 10) = 385
prod(f, k, a, b)
Also: product, Π
Product of f for k = a, a + 1, …, b.prod(k, k, 1, 6) = 720
limit(f, x, a) or limit(f, x, a, ±1)
Also: lim
Numerical limit of f as x approaches a (inf allowed). A fourth argument of 1 or −1 takes the right- or left-hand limit.limit(sin(x)/x, x, 0) = 1

Random numbers

Random numbers functions
SyntaxWhat it doesExample
rand()
Also: random
Uniform random number in [0, 1).rand() = e.g. 0.4170220047
randint(a, b)Uniform random whole number from a to b inclusive.randint(1, 6) = e.g. 4

Operator precedence

Operators are applied in the order below, from the first row to the last. Operators in the same row are applied from left to right, except powers, which group from right to left.

Order of operations, highest priority first
LevelOperatorsExampleResult
1Parentheses, function calls, absolute value bars |x|2*(3 + 4)14
2Postfix: factorial !, percent %, degree mark °3!^236
3Powers ^, grouped right to left2^3^2512, that is 2⁹
4Sign: a leading - or +-2^2−4, because the power comes first
5Multiplication, division and implicit multiplication, left to right100/10/52
6Addition and subtraction, left to right10 - 4 - 33
7Comparisons =, <, >, <=, >=, != (graphing and solver)y >= 2x + 1A shaded region
8Assignment := and store ->5 -> AStores 5 in A

An exponent may carry its own sign, so 2^-1 is 1/2. Write (-2)^2 to square a negative number; it gives 4. Comparisons cannot be chained: write x > 1 and x < 2 as two conditions rather than 1 < x < 2.

Implicit multiplication

You can leave out the multiplication sign between a number and a name, a bracket, a root or a function: 2x, 3(4 + 1), (1 + 2)(3 + 4), 2π, x y and 3sin(30) all multiply. A power binds before the implied product, so 2x^2 means 2 × x². Two plain numbers side by side, such as 2 3, are an error, because the meaning would be ambiguous.

By default an implied product has the same priority as × and ÷, so 6÷2(1+2) = 9 and 1/2x means (1/2) × x. The Implicit multiplication setting can give it higher priority instead, making these 1 and 1/(2x). See Calculator settings.

Other syntax notes

Special notation
NotationMeaningExample
sin 30, ln 2A function without parentheses takes the following term, including implied products and powerssin 2x = sin(2x); sin 30^2 = sin(900)
sin x cos xThe argument stops at the next function namesin(x) × cos(x)
sin^-1(x), sin⁻¹ xInverse functionsin^-1(0.5) = 30
sin^2(x)The function value squaredsin^2(30) = 0.25
log_2(8), log_b(x)Logarithm in base 2 or base blog_2(8) = 3
x², x³, x⁻¹Superscript powers5² = 25
√x, ∛xRoot of the following term; use parentheses for more√16 = 4, √(2×8) = 4
30°15'20"Degrees, minutes and seconds30.25555556 in degree mode
1.5e-3, 2e3Scientific notation (an e followed by digits is an exponent)2e3 = 2000
**, ×, ÷, −, { }Alternatives for ^, *, /, - and parentheses2**3 = 8
Unclosed (Closed automatically at the endsqrt(16 = 4

Absolute value bars cannot be nested; write abs(abs(-3) - 5) rather than ||-3| - 5|. To multiply by Euler’s number directly before digits, add a sign, as in 2e*3, since 2e3 is read as 2000.

Common mistakes

Most wrong answers on a scientific calculator come from the setup rather than the function. Check these first when a result looks off.

Common mistakes and how to fix them
MistakeWhat you getFix
Wrong angle modesin(30) = −0.9880316241 in radiansSwitch to degrees for 0.5, or type sin(π/6) in radians
Squaring a negative without brackets-2^2 = −4Type (-2)^2 = 4
Root of a sum without brackets√16+9 = 13Type √(16+9) = 5
Mixing up log and lnlog is base 10, ln is base eUse log(x, b) for any other base
Reading 6÷2(1+2) as 6 ÷ 66÷2(1+2) = 9, left to rightAdd brackets: 6÷(2(1+2)) = 1
Expecting a phone-style percent50 + 10% = 50.1, because % means ÷ 100Type 50 × 1.1 = 55 to add 10%
Swapping n and rnCr(2, 5) = 0Put the larger number first: nCr(5, 2) = 10
Sample or population spreadstdev = 2.138089935, stdevp = 2 for the same dataUse stdevp only when the data is the whole population
Input outside the domainasin(2) and log(-1) give an errorCheck the input, or switch to complex mode

For a slower walk through the keypad, modes and display, see how to use a scientific calculator. The settings page explains angle units, decimal places and the implicit multiplication option, and constants lists the names to type for π, e and physical constants.

Frequently asked questions

What are the basic functions of a scientific calculator?

Beyond the four operations, the basic functions are powers and roots (x^y, sqrt), logarithms (log, ln), trigonometry (sin, cos, tan and their inverses), factorials and combinations (!, nCr, nPr), and simple statistics such as mean. A scientific calculator also handles scientific notation, brackets and the order of operations.

How many functions does a scientific calculator have?

It depends on the model and on how the maker counts: handheld models often advertise a few hundred functions, because every mode, setting and key combination is counted separately. The ScientifiCalc engine has 80 named functions in 14 groups, plus operators, constants, memory and settings.

Why does sin(30) give −0.988 instead of 0.5?

The calculator is in radian mode, so it works out the sine of 30 radians. Switch the angle unit to degrees and sin(30) gives 0.5, or stay in radians and type sin(π/6).

Is log base 10 or base e?

log(x) is the common logarithm, base 10, so log(1000) = 3. Use ln(x) for the natural logarithm and log(x, b) or log_b(x) for any other base.

What is the difference between mod and rem?

mod(a, n) takes the sign of n (floored division), so mod(-7, 3) = 2. rem(a, n) takes the sign of a (truncated division), so rem(-7, 3) = −1. They agree when both numbers are positive.

How does round handle halves?

It rounds half away from zero, using the decimal value you typed: round(2.675, 2) = 2.68 and round(-2.5) = −3. A negative number of places rounds to tens, hundreds and so on: round(1234, -2) = 1200.

Tools on this page

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.