Skip to main content
MathStatCalc

Free Math and Statistics Calculators with Step-by-Step Solutions

MathStatCalc offers free math calculators, including a mean median mode calculator, slope and line calculators, and triangle calculators. Every answer shows its steps, so you can learn the method and check your own work.

  • 100% free
  • No sign-up
  • Worked steps
  • 28 calculators

28 free calculators available.

Start here: the most popular step-by-step calculators

These eight calculators cover the most common school topics: averages, spread, lines, triangles, vectors and sorting. Each card shows one real example input and its correct output.

  • Mean Median Mode Calculator

    Finds the mean (average), median and mode of a list of numbers and shows each step.

    In: 3, 5, 7, 7, 8
    Out: mean 6, median 7, mode 7

    Use the Mean Median Mode Calculator

  • y = mx + b Calculator

    Finds the slope-intercept equation of a line from two points or a point and a slope.

    In: (1, 2) and (3, 6)
    Out: y = 2x

    Use the y = mx + b Calculator

  • Law of Sines Calculator

    Solves a triangle from matching side and angle pairs, including the ambiguous case.

    In: A = 30°, B = 60°, a = 5
    Out: b ≈ 8.660254

    Use the Law of Sines Calculator

  • Point Slope Form Calculator

    Writes the equation of a line as y − y₁ = m(x − x₁).

    In: point (1, 2), slope 2
    Out: y − 2 = 2(x − 1)

    Use the Point Slope Form Calculator

  • Least to Greatest Calculator

    Sorts numbers, including negatives, decimals and fractions, from smallest to largest.

    In: 7, −2, 5, 0
    Out: −2, 0, 5, 7

    Use the Least to Greatest Calculator

All MathStatCalc calculators by category

MathStatCalc groups its calculators into three categories: statistics, algebra and geometry. Every calculator is free and shows the worked steps for your numbers.

Statistics calculators

A statistics calculator describes a data set. A data set is a list of numbers, such as test scores. These tools find the center and the spread of your numbers.

View all statistics calculators

Algebra, slope and number calculators

Algebra uses letters, such as x, for unknown numbers. These tools find the equation of a line, solve equations, and sort, convert and simplify numbers.

View all algebra, slope and number calculators

Geometry and triangle calculators

Geometry measures shapes and space. Trigonometry connects the angles of a triangle to its sides. These tools work with triangles, points and vectors.

View all geometry and triangle calculators

Formulas at a glance

These are the core formulas behind the most used MathStatCalc tools. In the table, n is the number of values, Σ means “add them all up”, and x̄ (say “x bar”) is the mean.

Core math and statistics formulas
NameFormulaWhat it tells youCalculator
Mean (average)x̄ = (x₁ + x₂ + … + xₙ) ÷ nThe balance point, or typical value, of a data set.Mean calculator
MedianSort the values. Odd n: the middle value. Even n: the mean of the two middle values.The middle of the data. Very large or very small values do not pull it much.Median calculator
ModeThe value with the highest countThe most common value. A data set can have no mode, one mode or several modes.Mode calculator
Mean absolute deviation (MAD)MAD = Σ|xᵢ − x̄| ÷ nThe average distance of the values from the mean. A bigger MAD means more spread.MAD calculator
Slopem = (y₂ − y₁) ÷ (x₂ − x₁) = rise ÷ runHow much y changes when x goes up by 1. Undefined when x₂ = x₁.Rise over run calculator
Slope-intercept formy = mx + bA line with slope m that crosses the y-axis at b.y = mx + b calculator
Point-slope formy − y₁ = m(x − x₁)A line with slope m that passes through the point (x₁, y₁).Point slope form calculator
Law of sinesa ÷ sin A = b ÷ sin B = c ÷ sin CEach side divided by the sine of its opposite angle gives the same number.Law of sines calculator
Angle between two vectorscos θ = (a · b) ÷ (|a| |b|)The angle θ between two arrows. a · b is the dot product. |a| is the length of a.Vector angle calculator

Worked examples you can check by hand

Each example below uses small numbers, so you can repeat every step with a pencil or a basic calculator. The MathStatCalc tools show the same steps for your own numbers.

Mean, median and mode of 3, 5, 7, 7, 8

  1. Add the values: 3 + 5 + 7 + 7 + 8 = 30.
  2. Divide by the count (5 values): 30 ÷ 5 = 6. This is the mean.
  3. Sort the list: 3, 5, 7, 7, 8. The middle (3rd) value is 7. This is the median.
  4. Count each value: 7 appears twice. All others appear once. The mode is 7.

Answer: mean 6, median 7, mode 7.

Mean absolute deviation of 2, 4, 6, 8

  1. Find the mean: (2 + 4 + 6 + 8) ÷ 4 = 20 ÷ 4 = 5.
  2. Find each distance from 5, without the minus sign: |2 − 5| = 3, |4 − 5| = 1, |6 − 5| = 1, |8 − 5| = 3.
  3. Add the distances: 3 + 1 + 1 + 3 = 8.
  4. Divide by the count: 8 ÷ 4 = 2.

Answer: the mean absolute deviation is 2.

Slope and line through (1, 2) and (3, 6)

  1. Rise (change in y): 6 − 2 = 4.
  2. Run (change in x): 3 − 1 = 2.
  3. Slope: m = 4 ÷ 2 = 2.
  4. Find b with y = mx + b and the point (1, 2): 2 = 2 × 1 + b, so b = 0.
  5. Check with (3, 6): 2 × 3 + 0 = 6. Correct.

Answer: slope 2, line y = 2x.

Law of sines: A = 30°, B = 60°, a = 5

  1. Write the rule: a ÷ sin A = b ÷ sin B, so b = a × sin B ÷ sin A.
  2. Use sin 30° = 0.5 and sin 60° ≈ 0.8660254.
  3. Calculate: b = 5 × 0.8660254 ÷ 0.5 ≈ 8.660254.
  4. The third angle is C = 180° − 30° − 60° = 90°.

Answer: side b ≈ 8.660254 (exactly 5√3).

Angle between the vectors (3, 4) and (4, 3)

  1. Dot product: a · b = 3 × 4 + 4 × 3 = 12 + 12 = 24.
  2. Lengths: |a| = √(3² + 4²) = √25 = 5 and |b| = √(4² + 3²) = 5.
  3. Cosine: cos θ = 24 ÷ (5 × 5) = 24 ÷ 25 = 0.96.
  4. Angle: θ = cos⁻¹(0.96) ≈ 16.26°.

Answer: the angle is about 16.26 degrees.

Sort 7, −2, 5, 0 from least to greatest

  1. Negative numbers are less than zero, so −2 comes first.
  2. Zero comes next.
  3. Then the positive numbers in order: 5, then 7.

Answer: −2, 0, 5, 7.

Want a longer walkthrough?

How to choose the right calculator

Choose a calculator by looking at what you already have: a list of numbers, two points, a triangle, an equation, or numbers to sort.

I have a list of numbers

Use a statistics calculator. If you need the center of the data, find the mean, median and mode. If you need to know how spread out the numbers are, find the mean absolute deviation, the standard deviation or the variance. Start with the Mean Median Mode Calculator, then measure spread with the Mean Absolute Deviation Calculator or the Standard Deviation Calculator.

I have two points or a slope

Use a slope calculator or a line calculator. Two points give you the slope and the full equation of the line. A point and a slope give you the line in point-slope form. A rise and a run give you the slope directly. Try the y = mx + b Calculator, the Point Slope Form Calculator or the Rise Over Run Calculator. To measure between points, use the Distance Between Two Points Calculator or the Midpoint Calculator.

I have a triangle

Use a triangle calculator. If you know a side and the angle opposite it, plus one more side or angle, the law of sines can find the missing parts. If you know three sides, or two sides and the angle between them, use the law of cosines. Open the Law of Sines Calculator or the Law of Cosines Calculator. For a triangle with a 90° angle, use the Right Triangle Calculator or the SOH CAH TOA Calculator.

I have vectors

Use a vector calculator. The dot product and the lengths of two vectors give the angle between them. Use the Angle Between Two Vectors Calculator.

I need to sort, solve or simplify

Use an algebra or number tool. Sorting from least to greatest works with negative numbers, decimals and fractions. Equation solvers show each step from the equation to the answer. Use the Least to Greatest Calculator, the Quadratic Formula Calculator or the System of Equations Calculator.

Accuracy and methods

MathStatCalc rounds final answers to 6 decimal places and keeps full precision in the middle steps, so small rounding errors do not add up. Trailing zeros are removed, so 2.500000 is shown as 2.5. Angles are shown in degrees. Read the full methodology for sources, test method and the correction process.

How the tools handle invalid input

  • Empty fields: the tool does not calculate. It names the field that needs a number.
  • Text that is not a number: the tool asks you to enter a number in that field.
  • Division by zero: the tool stops and explains that you cannot divide by zero.
  • Vertical lines: when x₁ = x₂, the slope is undefined. The tool says so and gives the line as x = x₁.
  • Zero vectors: a vector with length 0 has no direction, so the angle is undefined.

The ambiguous case of the law of sines

The law of sines can give zero, one or two triangles when you know two sides and an angle that is not between them (the SSA case). The Law of Sines Calculator checks every case and explains which one applies to your numbers.

Reference values to check any result

Use these known inputs to test a calculator against the formula. Each one can be done by hand:

  • Data 1, 2, 2, 7: mean 3, median 2, mode 2.
  • Data 1, 2, 3: mean 2, distances 1, 0, 1, mean absolute deviation 2/3.
  • Rise 3, run 4: slope 0.75, angle about 36.87°.
  • Vectors (1, 0) and (0, 1): angle 90°.
  • A = 30°, B = 60°, a = 5: b ≈ 8.660254, C = 90°.

Last reviewed:

About MathStatCalc

MathStatCalc is a free website of math and statistics calculators that show the worked steps, written in plain English for learners worldwide. Read more about the site, or report a correction with the page URL, your inputs, and the result you expected.

MathStatCalc calculators are for learning and for checking your work. They do not replace a teacher, and they do not change the rules of your class or exam. If your teacher asks for a different method or rounding rule, follow your teacher.

Site information

Trusted references for definitions

MathStatCalc follows the standard definitions found in these free references:

Frequently asked questions

What is the difference between mean, median and mode?

Mean, median and mode are three ways to describe the center of a data set. The mean, or average, is the sum of the values divided by how many values there are. The median is the middle value after you sort the list. The mode is the value that appears most often.

How do I calculate mean absolute deviation?

To calculate mean absolute deviation, find the mean, then find how far each value is from the mean, ignoring the minus sign. Add these distances and divide by the number of values. For 2, 4, 6, 8, the mean is 5, the distances are 3, 1, 1, 3, and the answer is 8 ÷ 4 = 2.

How do I find the slope between two points?

To find the slope between two points, divide the change in y by the change in x: m = (y₂ − y₁) ÷ (x₂ − x₁). For (1, 2) and (3, 6), the slope is 4 ÷ 2 = 2. If both x values are equal, the line is vertical and the slope is undefined.

What is y = mx + b?

y = mx + b is the slope-intercept form of a straight line. The letter m is the slope, which tells you how steep the line is. The letter b is the y-intercept, which is the y value where the line crosses the y-axis. For example, y = 2x + 3 has slope 2 and crosses the y-axis at 3.

When can I use the law of sines?

You can use the law of sines when you know one side and its opposite angle, plus one more side or angle. The rule is a ÷ sin A = b ÷ sin B = c ÷ sin C. When you know two sides and an angle that is not between them, there may be zero, one or two triangles.

How do I find the angle between two vectors?

To find the angle between two vectors, divide their dot product by the product of their lengths, then take the inverse cosine. The formula is cos θ = (a · b) ÷ (|a| |b|). For (3, 4) and (4, 3), the dot product is 24, both lengths are 5, cos θ = 0.96, and θ is about 16.26°.

Are the calculators free?

Yes, every MathStatCalc calculator is free to use. You do not need to create an account or sign in, and the tools do not ask for your name or email address. Type your numbers, run the calculation, and read the answer with its worked steps.

How accurate are the results?

MathStatCalc results are rounded to 6 decimal places, and the middle steps keep full precision so rounding errors do not build up. Computers store some decimals with tiny errors, so the last digit of a very long answer can differ slightly. Always use the rounding rule your teacher or exam asks for.

Popular step-by-step calculators

Browse by category