Opus Calculator

    Type to search. Press ? for keyboard shortcuts.

    Keyboard shortcuts

    / Ctrl K
    Search and commands
    ?
    This list
    t
    Switch light or dark
    c
    Copy the result
    s
    Share the result
    r
    Clear all changes
    h
    Go to the home page

    Mean, Median, Mode and Range Calculator

    With the default inputs, the mean comes to 6.2222.

    Share this calculator

    Mean, Median, Mode and Range Calculator

    These are plain links: nothing is sent to those sites until you choose one.

    Find this useful?Add Opus Calculator as a preferred source on Google (opens in a new tab)

    Cite this calculator

    Pick a style, then copy. Dated by when this page was last updated.

    Citing your own numbers? Use "Share result" on the calculator.

    Embed this calculator

    Show it on your own page. It links back here and is not indexed by search engines.

    Use this calculator with AI

    An assistant connected to our MCP server runs the same exact calculation as this page and cites it.

    This prompt uses the calculator's default numbers. Change the inputs and it follows.

    2. Connect once

    The server is read-only, needs no account and stores nothing. Any client that supports remote MCP servers over HTTP can use it.

    3. Or give an agent this page in a machine-readable form

    Nothing has changed yet.

    Result

    Mean: 6.2222. Median: 6. Mode: 8. Range: 6. Count: 9. Sum: 56

    Exact decimal arithmetic

    The formula

    Mean = sum ÷ count. Median = the middle value of the sorted list, or the average of the two middle values if the count is even. Mode = the most frequent value(s). Range = maximum − minimum.

    Worked example

    4, 8, 6, 5, 3, 8, 9, 5, 8: sum 56, count 9, mean 6.2222; sorted 3, 4, 5, 5, 6, 8, 8, 8, 9 so the median is 6 and the mode is 8; range 6.

    About this calculator

    The mean, median and mode are three ways of describing the centre of a set of numbers. The mean is the sum divided by the count, the median is the middle value when sorted, and the mode is the value that occurs most often. The range, the largest minus the smallest, describes spread. They can disagree: a few very large values pull the mean up while barely moving the median, which is why reported typical incomes use the median. Paste your numbers separated by commas, spaces or new lines. Worked scenarios, each run through the same calculator: Data 2, 4, 4, 4, 5, 5, 7, 9 gives mean 5, median 4.5, mode 4, range 7, count 8, sum 40; Data 10, 20, 30, 40 gives mean 25, median 25, mode No value repeats, range 30, count 4, sum 100; Data 1.5, 2.5, 2.5, 3.5, 9.5 gives mean 3.9, median 2.5, mode 2.5, range 8, count 5, sum 19.5; Data 100, 102, 98, 101, 99, 100 gives mean 100, median 100, mode 100, range 4, count 6, sum 600; Data 7, 7, 7, 7 gives mean 7, median 7, mode 7, range 0, count 4, sum 28; Data 12, 15, 11, 19, 15, 23, 15, 8 gives mean 14.75, median 15, mode 15, range 15, count 8, sum 118; Data 0, 0, 1, 2, 3, 5, 8, 13, 21 gives mean 5.8889, median 3, mode 0, range 21, count 9, sum 53; Data 45, 52, 38, 61, 47 gives mean 48.6, median 47, mode No value repeats, range 23, count 5, sum 243.

    Sources and method

    Every number is worked out with exact decimal arithmetic, not floating point, and rounded only when it is shown.

    Sources

    • 2.5 Measures of the Center of the Data (Introductory Statistics 2e) · OpenStax, Rice University, checked . The mean (the sum divided by the count), the median (the middle value, or the two middle values added and divided by two when n is even) and the mode (the most frequent value, with more than one mode possible). The range output is not covered by this page.

    Frequently asked questions

    Which average should I use?

    The mean uses every value but is pulled by outliers; the median resists them; the mode suits categories.

    What if two values tie for most common?

    Both are listed, and the data is called bimodal.

    Why does the median average two numbers?

    With an even count there is no single middle value, so the two middle ones are averaged.