CCalclabhub
Hand-drawn circles and curves on graph paper with a brass protractor and set square

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.

93 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 Coefficient Of Variation

The coefficient of variation measures spread relative to the size of the mean, so it lets you compare variability across data sets with very different units or scales. It is the standard deviation divided by the mean, normally reported as a percentage. This page explains the formula, shows how the squared CV and the relative standard error follow from it, and works through examples so you can use the measure with confidence.

CV = standard deviation / mean

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 Coefficient Of Determination

The coefficient of determination answers a direct question: what share of the variation in your observed values is explained by your model's predictions? This page works through the ratio of residual variation to total variation, shows what values of one, zero and below zero mean, and explains the adjusted figure used when a single predictor is fitted to four observations.

R-squared = 1 - SSresidual / SStotal

How To Calculate The Covariance

Covariance measures whether two variables move together, and in which direction. A positive value means they tend to rise and fall in step; a negative value means one tends to rise as the other falls. This page works through the population form using five fixed pairs of observations, giving a result you can reproduce with nothing more than a pencil.

Cov(X,Y) = Sum((xi - mean x)(yi - mean y)) / n

How To Calculate The Interquartile Range

The interquartile range measures the spread of the middle half of a data set. It is the difference between the upper quartile and the lower quartile, and because it ignores the extremes it gives a more stable picture of typical variation than the full range does.

IQR = Q3 - Q1

How To Calculate The Kurtosis

Kurtosis measures the tail heaviness of a distribution relative to a normal distribution. This page explains excess kurtosis, the standardised fourth central moment minus three, using five fixed values so that every intermediate number can be checked by hand.

Excess kurtosis = m4 / m2^2 - 3

How To Calculate The Mean Absolute Deviation

The mean absolute deviation measures the typical distance of observations from their mean, in the same units as the data. This page shows the four-step calculation using five fixed values, explains why absolute values are essential, and compares the result with the better-known standard deviation.

MAD = Sum|xi - mean| / n

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 The Range Rule Of Thumb

The range rule of thumb turns the spread of a data set into a quick estimate of its standard deviation. Given only the smallest and largest observations, it divides their difference by four and, if you also need a centre, averages the two extremes. This page works through the estimate with a minimum of 10 and a maximum of 50, and shows where the shortcut is reliable and where it fails badly.

s ≈ (maximum - minimum) / 4

How To Calculate The Root Mean Square

The root mean square, often shortened to RMS, is the square root of the average of the squares of a set of values. It is the standard way to quote a typical magnitude when signs should not cancel, which is why electrical engineers use it for alternating voltage. This page uses three fixed values so every step stays visible.

RMS = sqrt((v1^2 + v2^2 + ... + vn^2) / n)

How To Calculate The Skewness

Skewness describes the asymmetry of a set of numbers around its mean. This page computes the population skewness from five fixed values as the standardised third central moment, showing the mean, the two moments and the final ratio at each stage.

Skewness = m3 / m2^(3/2)

How To Calculate The Standard Error

The standard error of the mean estimates how far a sample average is likely to sit from the true population average. This page computes it from five fixed values using the sample standard deviation divided by the square root of the sample size, and shows every intermediate quantity along the way.

SE = s / sqrt(n)

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

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

Coordinate geometry

Percentages

Ratios & Proportions

Geometry

How To Calculate The Arc Length Of A Circle

An arc is the curved portion of a circle's edge between two points, and calculating its length tells you how far it is to travel around the rim rather than across it. This page shows how the central angle fixes what fraction of the full circumference an arc covers, then extends the same idea to sector area, the share of the circle and the angle left over. The worked examples use a radius of 10 and an angle of 60 degrees.

s = 2πr × (θ / 360)

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 Circle Sector

A circle sector is the slice cut out by two radii and the arc that joins their ends. Because it is simply a fraction of a complete circle, its area follows from one proportion: the central angle divided by 360 degrees. This page sets out that degrees convention explicitly, shows how the same fraction gives the arc length, and works through the numbers with a radius of 10 and an angle of 60 degrees.

Sector area A = (θ / 360) × πr²; arc length L = (θ / 360) × 2πr

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 Square

This calculation turns one measurement — the length of a side — into the amount of flat space a square covers. Because every side is equal, the whole shape is described by a single number, and the area, perimeter, diagonal and half-area all follow from it. It is the quickest piece of geometry most people ever use, from working out how many tiles to buy to estimating a plot of land.

A = s²

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 Annulus

An annulus is the ring-shaped region between two circles that share the same centre. Calculating its area means subtracting the smaller circle from the larger one, which reduces to a single expression in the two radii. This page explains that formula, shows how the ring width relates to the area, and works through examples so you can apply it to pipes, paths and washers with confidence.

Area = pi * (R^2 - r^2)

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 Area Of An Equilateral Triangle

An equilateral triangle has three equal sides and three angles of 60 degrees, so a single length determines the whole shape. This page shows how to turn that side into the area with root three over four times the side squared, and why the same result emerges from half the base times the perpendicular height. It also gives the perimeter and works through a side of 10 in full.

Area A = (√3 / 4) × s²; height h = (√3 / 2) × s; perimeter P = 3s

How To Calculate The Area Using Heron's Formula

Heron's formula answers a question that the familiar half-base-times-height rule cannot: what is the area of a triangle when all you know is the length of its three sides? No height, no angles and no drawing are required — only the three measurements and a square root.

A = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) / 2

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 Circumradius Of A Triangle

The circumradius of a triangle is the radius of the circle that passes through all three vertices. It is fixed by the three side lengths, and the compact formula R = abc/(4A) combines their product with the enclosed area. Heron's formula supplies that area from the sides alone, so no angle needs to be measured. This page derives the result, checks it on three familiar right triangles and shows how the radius responds when every side is scaled.

R = abc/(4A), with A = sqrt(s(s - a)(s - b)(s - c)) and s = (a + b + c)/2

How To Calculate The Diagonal Of A Cube

A cube is the simplest three-dimensional solid: twelve equal edges, six identical square faces and a single number — the side length — that determines everything else. This page shows how to get the space diagonal, the face diagonal, the total surface area and the volume from that one measurement.

Space diagonal d = s√3; face diagonal f = s√2; surface area SA = 6s²; volume V = s³

How To Calculate The Diagonal Of A Rectangle

The diagonal of a rectangle is the straight line between two opposite corners, and the Pythagorean theorem makes it easy to find from the two side lengths. This page shows how to square and add the sides, take the square root, and interpret the result alongside the perimeter, the area and the diagonal-to-length ratio. The worked examples start with the classic 6 by 8 rectangle whose diagonal is exactly 10.

d = √(l² + w²)

How To Calculate The Diagonal Of A Rectangular Prism

The diagonal of a rectangular prism is the longest straight line you can draw inside it, running between opposite corners through the solid. This page shows how the three edge lengths combine under a three-dimensional version of Pythagoras' theorem, how that space diagonal differs from the face diagonals, and how to compute the volume at the same time.

d = sqrt(l^2 + w^2 + h^2)

How To Calculate The Inradius Of A Triangle

The inradius of a triangle is the radius of the circle that fits inside it and touches all three sides. It links the area and the perimeter through the single relation area = inradius x semi-perimeter. Combine that with Heron's formula and the radius can be found from the three side lengths alone. This page works through the method, checks it on familiar right triangles and shows exactly how the radius responds when the sides are scaled.

r = area / s, with s = (a + b + c) / 2 and area = sqrt(s(s - a)(s - b)(s - c))

How To Calculate The Interior Angles Of A Polygon

The interior angles of a polygon are the angles inside its boundary at each corner, and their total depends only on the number of sides. This page explains how to calculate the interior angles of a polygon using the (n − 2) × 180° rule, and shows how the regular case, the exterior angles and the effect of adding sides follow from the same count. Every worked number uses a polygon with six sides.

Sum S = (n − 2) × 180°; each interior angle of a regular n-gon = (n − 2) × 180° / n; each exterior angle = 360° / n

How To Calculate The Number Of Diagonals In A Polygon

Counting diagonals is a compact lesson in avoiding double counting. From any vertex of a convex polygon you can join every other vertex except the vertex itself and its two neighbours, and dividing by two then gives the total. The answer depends only on the number of sides and grows quadratically, so doubling the sides produces far more than twice as many diagonals.

D = n(n - 3) / 2

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 Square

The perimeter of a square is the total distance around its four edges, and because all four edges are equal it is simply four times the side length. This one measurement also unlocks the area, the corner-to-corner diagonal and the distance halfway around the shape. It is the calculation behind fencing a plot, framing a panel or estimating the skirting board for a square room.

P = 4s

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 Hemisphere

A hemisphere is exactly half a sphere, cut through its centre, and its surface area comes in two flavours that are easy to confuse. The curved dome covers 2 pi r squared, the flat circular base covers pi r squared, and together they give a total of 3 pi r squared. This page separates the two, shows where each term comes from and works through examples so you never report the wrong one.

Total SA = 3 pi r^2 (curved = 2 pi r^2, base = pi 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 Rectangular Prism

The surface area of a rectangular prism tells you how much material covers all six of its rectangular faces. It is the sum of the areas of three pairs of identical faces, written compactly as 2(lw + lh + wh). This page shows where that formula comes from, how it differs from lateral area and volume, and how to apply it without mixing up your units.

SA = 2(lw + lh + wh)

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 Frustum

A frustum is what remains when the pointed tip of a cone is sliced away by a plane parallel to its base, leaving two circular faces of different sizes. This page explains how to calculate the volume of a frustum from the two radii and the perpendicular height, and shows how the slant height, the lateral surface area and the volume of the original uncut cone follow from the same three inputs. All working uses a large radius of 5, a small radius of 3 and a height of 4.

V = (πh/3)(R² + Rr + r²); slant height s = √(h² + (R − r)²); lateral area A = π(R + r)s

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 Tetrahedron

A regular tetrahedron has four equilateral triangular faces, and every length in it can be recovered from a single edge. This page shows how to turn that edge into the volume with side cubed times root two over twelve, and how the same length gives the area of one face, the total surface area and the perpendicular height. It works through an edge of 6 in full and explains where each constant comes from.

Volume V = (√2 / 12) × s³; face area A_f = (√3 / 4) × s²; surface area A_t = √3 × s²; height h = s√2 / √3

How To Calculate The Volume Of A Torus

A torus volume calculation tells you how much space lies inside a doughnut-shaped solid, the shape made by spinning a circle around a straight axis in its own plane. The result depends on just two lengths: the major radius from the axis to the centre of the tube, and the minor radius of the tube itself. Because the minor radius is squared, a small change in tube thickness changes the enclosed volume far more than the same change in the size of the ring.

V = 2 * pi^2 * R * r^2

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 Calculate The Volume Of An Ellipsoid

An ellipsoid is a smooth, egg-like solid described by three perpendicular semi-axes, and its volume follows from those three lengths alone. This page explains how to calculate the volume of an ellipsoid with V = (4/3)πabc, and shows how the bounding sphere, the spheroid special cases and the effect of doubling an axis all follow from the same inputs. Every worked number uses semi-axes of a = 6, b = 4 and c = 3.

V = (4/3)πabc; axis product P = abc; bounding sphere = (4/3)πa³ (a largest)

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

Vectors

Combinatorics

Sequences

Other categories