
Category
Math Calculations
Percentages, ratios, series and geometry — the arithmetic behind everyday numbers, worked step by step with the formula, the variables and a check you can repeat.
61 calculations published in this category.
Statistics
How To Calculate A Confidence Interval
A confidence interval turns a single sample estimate into a range, and the width of that range is the honest measure of how much the sample actually tells you.
confidence interval = mean +/- z x (standard deviation / sqrt(n))
How To Calculate A Geometric Mean
The geometric mean is the average you use when values multiply rather than add. Multiply all the numbers together and take the root that matches how many there are.
Geometric mean = (x1 x x2 x ... x xn)^(1/n)
How To Calculate A Harmonic Mean
The harmonic mean is the average for rates. Instead of adding the values and dividing, you flip each one, average the flipped numbers, then flip the answer back.
H = n / (1/x1 + 1/x2 + ... + 1/xn)
How To Calculate A Weighted Average
A weighted average answers "what is the typical value?" when some values count more than others. Grades, portfolio returns, inventory costs and survey results are almost never plain averages, which is why the distinction matters.
Weighted Average = Sum of (Value x Weight) / Sum of Weights
How To Calculate A Z-Score
A z-score restates a value as how many standard deviations it sits from the mean. That rescaling removes the original units, which is exactly what lets you compare things that were never commensurable.
z = (x - mean) / standard deviation
How To Calculate Expected Value
Expected value is the long run average of a gamble. Weight every outcome by how likely it is, add the results, and you have the number that decides whether a bet is worth taking.
E = p1 x x1 + p2 x2 + ... + pn x xn
How To Calculate Probability
Probability is the number of ways an event can happen divided by the number of equally likely outcomes. Everything else, from complements to combined events, is built from that one fraction.
P = favourable outcomes / total outcomes
How To Calculate Standard Deviation
Standard deviation is the typical distance of observations from their mean, measured in the original units. The squaring is what makes it algebraically useful — and the n-1 is what makes it honest for a sample.
SD = sqrt(Sum of (xi - Mean)^2 / (n - 1))
How To Calculate The Average (Mean, Median And Mode)
Asking for the average is really asking which of three different summaries you want, and they disagree whenever the data is lopsided.
mean = sum / count
How To Calculate The Median
The median is the number that sits in the middle, and it is the statistic that survives an outlier when the average does not.
median = middle value once the data is sorted
How To Calculate Variance
Variance measures the average squared deviation from the mean, giving a single number that describes how widely a set of values is scattered. Whether you divide by N or by N minus one decides whether you are describing the data you have or estimating the spread of a larger population.
Population: sigma^2 = Sum(xi - mu)^2 / N | Sample: s^2 = Sum(xi - x-bar)^2 / (n - 1)
Arithmetic
How To Calculate A Cube Root
A cube root asks which number, multiplied by itself twice more, produces the value you started with. It is the exact inverse of cubing, and unlike a square root it has a single real answer for every real input, negative numbers included.
cube root of x = x^(1/3), with the sign of x carried separately
How To Calculate A Ratio
A ratio is a division you have decided to keep as a pair, and the two things you do with it are comparing sizes and splitting a whole.
ratio value = first quantity / second quantity; share = total x quantity / (sum of all quantities)
How To Count Significant Figures
Significant figures are the digits in a number that carry real information. They exist because a measurement is only as precise as the instrument that produced it, and reporting extra digits implies a precision that was never measured.
rounded = round(x, sigFigs - 1 - floor(log10(|x|)))
Algebra
How To Calculate A Logarithm
A logarithm asks what power a base must be raised to in order to produce a given number, and it turns multiplication into addition.
log_b(x) = ln(x) / ln(b)
How To Calculate Exponential Growth
Exponential growth happens when a quantity is multiplied by the same factor every period. Interest, population and radioactive decay all follow the same shape once the numbers are set up.
A = P x (1 + r)^t, where r can be negative for decay
How To Calculate Linear Interpolation
Linear interpolation fills the gaps between two points you already know. Work out how far along the gap your target sits, then walk the same fraction along the values.
y = y1 + (x - x1) x (y2 - y1) / (x2 - x1)
How To Calculate Logistic Growth
Logistic growth is exponential growth with a ceiling. Everything grows quickly at first, then the growth rate fades as the population presses against what the environment can support.
P(t) = K / (1 + ((K - P0) / P0) x e^(-rt))
How To Calculate Slope
Slope is how much a quantity changes vertically for one unit of horizontal movement. It turns two data points into a rate, and once you have it, the whole line follows.
Slope = (y2 - y1) / (x2 - x1)
How To Solve A Quadratic Equation
Every quadratic equation has a closed-form solution. The discriminant tells you what kind of answer to expect before you compute anything, which is the part people skip.
x = (-b +/- sqrt(b^2 - 4ac)) / (2a)
How To Solve A System Of Linear Equations
Two equations with two unknowns have a single solution whenever the two lines cross at exactly one point, and Cramer's rule finds that point with nothing more than determinants.
D = a1 b2 - a2 b1
How To Use A Scientific Calculator
A scientific calculator is only as reliable as the assumptions you make about it. Precedence and angle units cause more wrong answers than the arithmetic does.
brackets first, then powers, then multiply and divide, then add and subtract
Linear Algebra
How To Calculate A Matrix Determinant
A determinant collapses a square matrix into a single number that tells you how much the matrix stretches space and whether it collapses it flat.
2x2: det = ad - bc. 3x3: sum the three down-right diagonals and subtract the three down-left ones.
How To Calculate The Inverse Of A Matrix
The inverse of a matrix is the matrix that undoes it, and for the two-by-two case the recipe is shorter than the explanation.
A inverse = (1 / (ad - bc)) x [ d, -b; -c, a ]
Coordinate geometry
Percentages
How To Calculate A Percentage
Every percentage question is one of three sentences wearing different clothes. Once you can identify which one you are looking at, the arithmetic is a single multiplication or division, and the common mistakes all come from picking the wrong one.
Part = Whole x Percentage / 100
How To Calculate Percent Decrease
Percent decrease is a drop divided by the level it fell from. The denominator decides everything: 120 to 90 is a fall of 25.00%, and the same 30 measured against 90 gives 33.3333%, which answers a different question entirely.
Percent Decrease = (Original Value - New Value) / Original Value x 100
How To Calculate Percent Increase
Percent increase is a gap divided by where you started. Get the denominator right and the rest is arithmetic; get it wrong and every figure downstream is quietly answering a different question.
Percent Increase = (New Value - Original Value) / Original Value x 100
How To Calculate Percentage Change
Percentage change is a difference divided by a starting point. That denominator is where almost every mistake lives — including the one that makes a 90% collapse look recoverable.
Percentage Change = (New Value - Original Value) / Original Value x 100
Ratios & Proportions
How To Calculate Fractions
Fraction arithmetic is ordinary arithmetic with one extra step: the denominators have to agree before the numerators can be combined. Once that is handled, the four operations reduce to a handful of rules.
a/b + c/d = (a x d + c x b) / (b x d)
How To Solve A Proportion
A proportion says two ratios are equal, which means one unknown journey holds all the information you need. The entire skill is deciding which quantity sits above which in the division.
a / b = c / d, so d = c x b / a
Geometry
How To Calculate The Area Of A Circle
Circle area is pi times the radius squared. Everything difficult about the topic sits in two decisions: which length is the radius, and how much precision you carry.
Area = pi x r^2
How To Calculate The Area Of A Hexagon
A regular hexagon splits into six equilateral triangles, which makes its area a short formula involving the square root of three. One side length is enough to find everything else.
A = 1.5 x sqrt(3) x s^2, or A = 0.5 x perimeter x apothem
How To Calculate The Area Of A Kite
The area of a kite is found from its two diagonals, which always cross at right angles. This page shows why halving their product gives the enclosed space, how to find the separate perimeter from the unequal sides, and how to avoid the unit and symmetry errors that catch most learners.
A = (d1 x d2) / 2
How To Calculate The Area Of A Parallelogram
Parallelogram area looks like rectangle area until you notice the sides are slanted, and using the slanted side instead of the height is the mistake almost everyone makes once.
area = base x perpendicular height
How To Calculate The Area Of A Rectangle
Rectangle area is the first formula most people learn and the one most often got wrong, because the units, the perimeter and the diagonal all get mixed into the same sentence.
area = length x width
How To Calculate The Area Of A Rhombus
The area of a rhombus is half the product of its two diagonals, a shortcut that works because those diagonals cross at right angles. This page shows why that formula holds, how the same diagonals give you the side length and perimeter through Pythagoras, and how to apply the numbers in three worked examples.
A = (d1 × d2) / 2
How To Calculate The Area Of A Sector
A sector is the wedge-shaped piece of a circle bounded by two radii and the arc between them. Its area is a simple fraction of the whole circle, with the fraction set by the central angle.
sector area = (angle / 360) x pi x r^2, or 0.5 x r^2 x theta in radians
How To Calculate The Area Of A Trapezoid
A trapezoid has two parallel sides of different lengths, and its area is the average of those two sides multiplied by the distance between them.
A = (a + b) / 2 x h
How To Calculate The Area Of A Triangle
A triangle covers exactly half of whatever parallelogram shares its base and height. Nearly every wrong answer comes from one of two slips: a height that was never perpendicular, or a base and a height borrowed from two different sides.
Area = 1/2 x base x height
How To Calculate The Area Of An Ellipse
An ellipse is a circle that has been stretched along one axis, and its area is the circle area with one radius swapped for the other.
A = pi x a x b, where a is the semi-major axis and b is the semi-minor axis
How To Calculate The Circumference Of A Circle
Circumference is the distance around a circle, and it is the one circle measurement you can take with a piece of string, which makes it the easiest to check.
circumference = 2 x pi x radius
How To Calculate The Perimeter Of A Rectangle
Perimeter is the fence, the skirting and the picture frame: the distance around the edge, which is always a plain length rather than a square measure.
perimeter = 2 x (length + width)
How To Calculate The Perimeter Of A Triangle
The perimeter of a triangle is the total distance around its three edges, found by simply adding the three side lengths. This page also derives the related quantities that share those sides: the semi-perimeter, the area via Heron's formula and the longest of the three sides.
P = a + b + c
How To Calculate The Surface Area Of A Cone
The surface area of a cone is the flat circular base plus the curved side that tapers to the point. The only extra quantity you need beyond radius and height is the slant height, the distance down the outside of the cone.
total surface area = pi x r x l + pi x r^2, where l = sqrt(r^2 + h^2)
How To Calculate The Surface Area Of A Cube
A cube is the one solid where every face is identical, so the total surface collapses to a single multiplication once you know the edge.
surface area = 6 x s squared, where s is the edge length
How To Calculate The Surface Area Of A Cylinder
A cylinder is the easiest curved solid to understand, because unrolling its side turns it into a plain rectangle whose width is the circle's circumference.
surface area = 2 x pi x r x h + 2 x pi x r^2
How To Calculate The Surface Area Of A Pyramid
The surface area of a square pyramid is the square base plus four identical triangular faces. The only awkward quantity is the slant height, which follows from a right-angled triangle inside the solid. This page walks through that triangle, assembles the total surface area and keeps volume carefully separate.
S = a^2 + 2 x a x sqrt(h^2 + (a/2)^2)
How To Calculate The Surface Area Of A Sphere
A sphere's surface area is exactly four of its great circles, a result Archimedes was so pleased with that he asked for it on his tombstone.
surface area = 4 x pi x radius^2
How To Calculate The Volume Of A Cone
A cone holds exactly one third of the cylinder that would fit around it, which is where the one third in the formula comes from and why it surprises people.
volume = pi x radius^2 x height / 3
How To Calculate The Volume Of A Cube
A cube is the one solid where a single measurement determines everything, which makes it the cleanest place to see how length, area and volume scale differently.
volume = side^3
How To Calculate The Volume Of A Cylinder
Cylinder volume is the area of the circular base multiplied by the height. Nearly every wrong answer comes from one of two places: a diameter used where a radius belongs, or units that were never made consistent before being cubed.
V = pi x r^2 x h
How To Calculate The Volume Of A Hemisphere
A hemisphere is exactly half a sphere, cut through its centre, and its volume is two-thirds of pi times the radius cubed. This page explains where that formula comes from, how it differs from the sphere and from the surface-area formulas, and how doubling the radius changes the answer, with three worked examples.
V = (2/3) × π × r³
How To Calculate The Volume Of A Pyramid
A pyramid holds exactly one third of the prism built on the same base with the same height, whatever the shape of that base.
volume = base area x height / 3
How To Calculate The Volume Of A Rectangular Prism
Volume of a rectangular prism is length times width times height. Nearly every error on this page comes from somewhere else: mismatched units, external instead of internal measurements, or a cubic answer read as a liquid one.
V = l x w x h
How To Calculate The Volume Of A Sphere
A sphere is the only solid whose volume and surface area both follow from a single measurement. Measure the radius once and every other quantity is a formula away.
V = (4/3) x pi x r^3
How To Calculate The Volume Of A Triangular Prism
A triangular prism is a length of constant triangular cross-section. Its volume is the area of that triangle times the length, and the triangular face comes from Heron's formula when you only know the three sides.
volume = triangle area x length, where triangle area = sqrt(s(s-a)(s-b)(s-c))
How To Use The Pythagorean Theorem
For right triangles, the squares of the two shorter sides add exactly to the square of the longest. That single relation turns any two known sides into the third.
c^2 = a^2 + b^2, so c = sqrt(a^2 + b^2)
Coordinate Geometry
Sequences
How To Find The Sum Of A Geometric Series
In a geometric series each term is the previous one multiplied by a fixed ratio. That single change turns polynomial growth into exponential growth — and turns the sum formula into something with a constraint worth respecting.
S = a1 (1 - r^n) / (1 - r), and S-infinity = a1 / (1 - r) when |r| < 1
How To Find The Sum Of An Arithmetic Series
An arithmetic series adds the terms of a sequence that changes by a fixed amount each step. The sum has a closed form, which means adding a thousand terms costs the same effort as adding five.
S = n/2 x (a1 + an)