Math Calculators
Math tools for arithmetic, algebra, geometry, trigonometry, linear algebra, and number theory.
Fractions
Adding Fractions Calculator Adds up to five fractions or mixed numbers and shows the working. The calculator finds the least common denominator (LCD), rewrites each fraction over it, adds the numerators and simplifies the answer. You get the result as a simplified fraction, as a mixed number and as a decimal. Negative fractions are allowed, so you can also use it to subtract. Decimal to Fraction Converter Converts a decimal into a fraction in lowest terms and a mixed number, exactly. It handles repeating decimals too: say how many digits at the end repeat, or type the repeating block in brackets, such as 0.(3) for 0.333… = 1/3 or 1.2(45) for 1.24545… = 137/110. The working shows the power of ten (or the 999… denominator) used and the common factor cancelled. Fraction to Decimal Converter Turns a fraction or a mixed number into a decimal, rounded to the number of decimal places you choose. It does the long division exactly, so you also see whether the decimal stops (like 3/8 = 0.375) or repeats forever (like 1/6 = 0.1666…), with the repeating block marked. The fraction in lowest terms and the value as a percentage are shown as well.
Geometry
Area Calculator Finds the area of 2D shapes: rectangle, square, triangle (from base and height, three sides, two sides and the angle between them, or two angles and the side between them), circle, semicircle, circular sector, ellipse, trapezoid, parallelogram (three ways), rhombus (three ways), kite (two ways), regular pentagon, hexagon and octagon, annulus (ring), any quadrilateral from its diagonals and any regular polygon. Pick the shape, enter its dimensions in any length unit (angles in degrees or radians), and you get the area in that unit squared, plus square metres and square feet, and the perimeter where the inputs fix it. Handy for working out the area of a room, a garden bed or a patio before buying flooring, mulch or bricks. Area of a Circle Calculator Finds the area of a circle from its radius, diameter or circumference, and works backwards from a known area to the radius. All four measurements are shown together, so you can use it for a round table top, a pizza, a garden bed, a pipe cross-section or a circular room. Pick the length unit and the area comes out in the matching square unit, also converted to square metres and square feet. Area of a Triangle SAS Calculator Finds the area of a triangle from two sides and the angle between them (side-angle-side, SAS) using Area = ½ a b sin α. It also solves the rest of the triangle: the third side by the law of cosines, the two remaining angles, the perimeter and the height onto side a. Circumference Calculator Finds the circumference (the distance around) of a circle from its radius, diameter or area, and works backwards from a measured circumference to the radius and diameter. Handy for wrapping a tape round a tree trunk, a pipe or a wheel and finding how wide it is, or for working out how much edging a round flower bed needs. All four circle measurements are shown together, plus the distance travelled in one turn of a wheel in metres and feet. Cone Volume Calculator Calculates the volume of a cone from its base radius and height, and the volume of a truncated cone (frustum) from its base radius, top radius and height. Use it for an ice-cream cone, a funnel, a heap of sand or gravel, a lampshade or a flower pot. For a right cone you also get the slant height and the surface areas, and every volume is converted to litres, US gallons, cubic metres and cubic feet. Cube Volume Calculator Finds the volume of a cube from its side length, and also works from the surface area, the face diagonal, the space diagonal or the volume itself, so you can get the side of a cube that holds a given amount. Every measurement of the cube is shown together, with the volume converted to litres, US gallons, cubic metres and cubic feet: useful for boxes, storage bins, dice, ice cubes or concrete blocks. Cylinder Volume Calculator Works out the volume of a cylinder from its radius or diameter and height, and the volume of material in a hollow cylinder such as a pipe or tube from its outer and inner diameters. Use it for a water tank, a can, a round column or a post hole. The volume is given in your cubic unit and also in litres, US gallons, cubic metres and cubic feet, with the surface areas of a solid cylinder alongside. Midpoint Calculator Finds the point exactly halfway between two points on a coordinate plane, using the midpoint formula ((x₁ + x₂)/2, (y₁ + y₂)/2). It also works in reverse: give one endpoint and the midpoint and it finds the other endpoint. The length of the segment, the distance from each end to the midpoint and the slope of the segment are shown too, so you can check geometry homework or split a line on a plan into two equal halves. Pythagorean Theorem Calculator Solves a right triangle with the Pythagorean theorem, a² + b² = c². Give any two of the two legs, the hypotenuse, the area and the perimeter, and it finds the missing sides, then adds the area, perimeter, both acute angles and the height dropped onto the hypotenuse. Lengths can be in metric or imperial units, from millimetres to nautical miles, and the area in anything from square millimetres to acres. Handy for checking that a corner is square, sizing a ladder or ramp, or finding a diagonal. Right Triangle Perimeter Calculator Finds the perimeter of a right triangle. Enter the two legs (the sides that meet at the right angle) and the calculator works out the hypotenuse with the Pythagorean theorem and adds all three sides; or enter all three sides directly. It also gives the area and both acute angles, and checks that the sides can form a triangle and whether it really has a right angle. Slope Calculator Finds the slope (gradient) of the straight line through two points, m = (y₂ − y₁) ÷ (x₂ − x₁), along with the equation of the line in slope-intercept form y = mx + b. You also get the y-intercept, the angle the line makes with the x-axis in degrees, the slope as a percentage grade, the rise and run between the points and the distance between them. Vertical and horizontal lines are handled correctly.
Statistics
Average Calculator Finds the average (arithmetic mean) of a list of numbers, together with the count, sum, median, geometric mean, smallest and largest value and the range. Paste or type the numbers separated by commas, spaces or semicolons, in any mix. Anything that is not a number is skipped and listed, so you can see exactly which values went into the result. Useful for test scores, prices, measurements or any other set of data. Confidence Interval Calculator Calculates a confidence interval for a population mean or a population proportion from sample data. For a mean, enter the sample mean, the standard deviation (or the standard error) and the sample size; for a proportion, the number of successes or the sample proportion and the sample size. Choose the confidence level, such as 90%, 95% or 99%, to get the critical z-value, the standard error, the margin of error and the lower and upper bounds of the interval. Mean Calculator Calculates the three classical (Pythagorean) means of a data set: the arithmetic mean (the everyday average), the geometric mean (for growth rates and ratios) and the harmonic mean (for rates such as speeds and prices per unit). Choose one or show all three side by side, with the sum, product or reciprocal sum each one is built from. Median Calculator Finds the median, the middle value of a data set, and shows how it was found: the numbers sorted from smallest to largest, the position of the middle value and, for an even count, the two middle values that are averaged. Paste a list of test scores, house prices, salaries or response times. The median is not pulled around by a few extreme values, so it is often a fairer ‘typical’ value than the mean, which is shown alongside for comparison. Standard Deviation Calculator Calculates the standard deviation of a list of numbers, the most common measure of how spread out data are around their mean. Paste or type your values separated by commas, spaces or new lines, and choose whether they are a sample from a larger group (dividing by n − 1) or the whole population (dividing by n). You also get the variance, mean, count, sum, sum of squared deviations, standard error of the mean, minimum, maximum and range. Weighted Average Calculator Finds the weighted average (weighted mean) of a list of values, where some values count more than others. Enter the values and their weights in the same order: course grades and credit hours, exam scores and percentage weights, prices and quantities bought, or returns and amounts invested. You get the weighted average with the sum of value × weight and the sum of weights it comes from, plus the plain average for comparison. Z-Score Calculator Converts a raw value into a z-score, the number of standard deviations it lies above or below the mean: z = (X − μ) ÷ σ. Enter the value, the mean and the standard deviation, or work backwards from a z-score to the raw value. You also get the probabilities from the standard normal distribution: the left-tailed (percentile), right-tailed and two-tailed p-values and the probability of falling within ±z of the mean, which you can use for hypothesis tests or to compare scores from different scales.
Combinatorics
Combination Calculator (nCr) Counts the number of ways to choose r items from a set of n when the order does not matter, written C(n, r), nCr or 'n choose r'. Choose whether an item can be picked more than once (combinations with repetition) and see the exact answer, even for large numbers, with the formula filled in. Use it for lottery odds, choosing a team or committee, card hands and binomial coefficients. The matching number of permutations, where order matters, is shown for comparison. Factorial Calculator Calculates n! (n factorial), the product of all whole numbers from 1 to n, exactly, for any n from 0 to 5,000. Factorials grow extremely fast, so alongside the exact value you get the result in scientific notation, how many digits it has and how many zeros it ends with. Factorials count the ways to arrange n distinct objects in order and appear throughout probability, combinations and permutations. Permutation Calculator (nPr) Counts the ways to choose and arrange r items from a set of n when the order matters, written P(n, r) or nPr. Choose whether items can repeat (like digits in a PIN) or not (like runners on a podium) and get the exact answer with the formula filled in. For small sets the calculator also lists the actual arrangements using letters A, B, C…, and shows the matching number of combinations where order does not matter.
Algebra
Exponent Calculator Raises a number to a power: enter the base b and the exponent x to get a = bˣ, including negative exponents (reciprocals), fractional exponents (roots) and very large or small results in scientific notation. You can also work backwards: find the exponent that turns a base into a given result (a logarithm), or the base that gives a result for a given exponent (a root). The working shows what the exponent means, such as repeated multiplication or a root. Log Calculator (Logarithm) Calculates the logarithm of a number in any base: the power y to which the base b must be raised to give x, so that logb(x) = y means bʸ = x. Choose base 10 (common log), base e (natural log, ln), base 2 (binary log) or any other positive base. Alongside the answer you get the natural, common and binary logarithms of the same number and the change-of-base working, so you can check the result by hand or convert between bases. Quadratic Formula Calculator Solves any quadratic equation with the quadratic formula, x = (−b ± √(b² − 4ac)) ÷ 2a. Enter the equation in standard, vertex or factored form and get both roots as decimals and in exact simplified radical form, the discriminant and what it says about the roots, the vertex, the axis of symmetry, the y-intercept and the equation rewritten in all three forms. Switch on complex roots to solve equations with a negative discriminant, and show the working step by step.
Arithmetic
Fraction Calculator Adds, subtracts, multiplies and divides two fractions, simplifies a fraction to lowest terms, and converts between fractions and decimals. Fractions can be entered as simple fractions (7/4) or as mixed numbers (1 3/4). Every answer is reduced to lowest terms and also given as a mixed number, an exact decimal with any repeating digits marked, and a decimal rounded to six places, together with the working: the common denominator for addition and subtraction or the reciprocal for division. GCD Calculator (Greatest Common Divisor) Finds the greatest common divisor (GCD), also called the greatest common factor (GCF) or highest common factor (HCF), of up to 15 whole numbers: the largest number that divides all of them without a remainder. Enter the numbers separated by commas or spaces and choose how to see the working: the Euclidean algorithm step by step, or the prime factorization of each number with the shared factors picked out. The least common multiple is shown too. LCM Calculator (Least Common Multiple) Finds the least common multiple (LCM) of up to 15 whole numbers: the smallest positive number that every one of them divides into exactly. Use it to find a common denominator for fractions or to work out when repeating events line up. Choose how to see the working: listing multiples, prime factorization with the highest power of each prime, or the shortcut LCM(a, b) = a × b ÷ GCD(a, b). The greatest common divisor is shown too. Long Division Calculator Divides one whole number by another and shows the long division step by step, the way it is taught at school: bring down a digit, see how many times the divisor goes in, multiply, subtract and carry the remainder. You get the quotient and remainder, the answer as a mixed number, and the exact decimal, with any repeating digits marked in brackets. Prime Factorization Calculator Breaks a whole number down into the prime numbers that multiply to give it, such as 360 = 2³ × 3² × 5, for any number up to one trillion. The step-by-step division table shows how the number is divided by its smallest prime factor again and again until 1 is left. You also learn whether the number is prime, how many divisors it has, their sum, and the full list of divisors for numbers that do not have too many. Ratio Calculator Solves proportions and works with ratios of two or three numbers. Fill in any three of A : B = C : D to find the missing value, scale a ratio up or down by a factor, simplify a ratio to its lowest whole-number terms (decimals such as 1.5 : 2.25 are handled exactly), or rewrite it in 1 : n or n : 1 form for comparing ratios. Each answer shows the working and the scale factor between equivalent ratios. Rounding Calculator Rounds a number to a chosen place value (thousands, tens, a whole number, tenths, hundredths and so on), to a number of significant figures, or to the nearest fraction such as a quarter or a sixteenth. Ten rounding rules are available, from everyday half up and banker's rounding (half to even) to ceiling, floor and truncation, and a comparison table shows what each rule gives for your number. Arithmetic is exact, so 2.675 rounds to 2.68, not 2.67 as some software gives. Scientific Notation Calculator Converts a number to scientific notation (a × 10ⁿ with 1 ≤ |a| < 10), e notation (3.2e5) and engineering notation with its SI prefix, and back to an ordinary decimal. Enter a plain decimal such as 0.000452 or 93,000,000, or a number already in scientific form such as 6.022e23 or 3*10^4, and optionally round the coefficient to a number of significant figures. Square Root Calculator Finds the square root of any number: the principal (positive) root, both roots ±√x, and for whole numbers the simplified radical form such as √72 = 6√2. It tells you whether the number is a perfect square and names the perfect squares either side of it, which is how you would estimate a root by hand. Negative numbers get their imaginary roots, written with i.
Education
GPA Calculator Calculates your grade point average (GPA) from letter grades on the standard 4.0 scale. Enter up to ten courses with their grades and, for college, their credit hours; for high school, mark honors and AP, IB or college-level courses to get a weighted GPA alongside the unweighted one. Add your previous GPA and credits to see your new cumulative GPA. You can also count A+ as 4.3 if your school uses that scale. Grade Calculator Works out your overall course grade from individual assignments, tests and exams, or the score you need on the final exam to reach a target grade. Enter each grade as a percentage with its weight (or as points earned out of points possible) to get the weighted average and the matching letter grade. Switch to the final exam mode, enter your current grade, how much the final counts and the grade you want, and see exactly what you must score on the final.
Percentages
Percentage Calculator Answers the four everyday percentage questions: what is P% of a number, what percent one number is of another, which number a value is P% of, and what you get when you increase or decrease a number by P%. Pick the question, fill in the two numbers and the answer comes with the formula and the working, so you can check a discount, a tip, an exam score or a share of a bill. Percentage Decrease Calculator Finds how much a value has fallen as a percentage of where it started. Enter the original and new values to get the percentage decrease and the amount of the drop, or work the other way: apply a percentage cut to find the new value, recover the original value from the reduced one, or turn a known drop into a percentage. If the new value is actually higher, the result says so and shows the equivalent percentage increase. Percentage Increase Calculator Works out how much a value has grown or shrunk in percentage terms. Give the starting and ending values to get the percentage increase (or decrease) and the difference between them, or work backwards: find the new value after a given percentage rise or fall, find the original value before a change, or recover both values from the percentage and the size of the change. Results show the change both as an increase and as the equivalent decrease, so a fall of 10% reads as an increase of −10%.