{"id":65091,"date":"2025-08-01T08:27:39","date_gmt":"2025-08-01T05:27:39","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=65091"},"modified":"2026-09-30T20:51:53","modified_gmt":"2026-09-30T17:51:53","slug":"weighted-mean","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/mathematics\/weighted-mean\/","title":{"rendered":"Weighted Mean Calculator"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Calculate Weighted Average of Values with Custom Weights<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"65091\" data-favorite-title=\"Weighted Mean\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/mathematics\/weighted-mean\/\" data-favorite-excerpt=\"Calculate the weighted mean of a dataset where each value has its own weight. Enter your values and weights to get the weighted average instantly \u2014 useful for grades, scores, and financial data.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-arithmetic\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/mathematics\/weighted-mean\/\" method=\"POST\" class=\"calculator\" id=\"calculator-65091\" data-post=\"65091\"><fieldset class=\"fieldset-input\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Number of values<\/label><input type=\"text\" name=\"number_of_values\" id=\"field-1\" aria-describedby=\"calc-info-1\" data-number inputmode=\"decimal\" autocomplete=\"off\" spellcheck=\"false\" min=\"2\" value=\"2\"\/><small id=\"calc-info-1\">Enter how many values you want to include in the weighted mean calculation<\/small><\/div><div class=\"field has-term\" id=\"input-2\"><label for=\"field-2\">Value 1<\/label><div class=\"term\">x\u2081<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"value_1\" id=\"field-2\" step=\"any\" value=\"10\"\/><\/div><div class=\"field has-term\" id=\"input-3\"><label for=\"field-3\">Weight 1<\/label><div class=\"term\">w\u2081<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"weight_1\" id=\"field-3\" step=\"any\" value=\"2\"\/><\/div><div class=\"field has-term\" id=\"input-4\"><label for=\"field-4\">Value 2<\/label><div class=\"term\">x\u2082<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"value_2\" id=\"field-4\" step=\"any\" value=\"20\"\/><\/div><div class=\"field has-term\" id=\"input-5\"><label for=\"field-5\">Weight 2<\/label><div class=\"term\">w\u2082<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"weight_2\" id=\"field-5\" step=\"any\" value=\"1\"\/><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"65091\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Average<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"65091\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Weighted Mean Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ \\bar{x}_w = \\frac{\\sum_{i=1}^{n} x_i w_i}{\\sum_{i=1}^{n} w_i} = \\frac{x_1 w_1 + x_2 w_2 + \\cdots + x_n w_n}{w_1 + w_2 + \\cdots + w_n} \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(x_i\\) \u2014 the individual values of the dataset<\/li>\n<li>\\(w_i\\) \u2014 the weight assigned to each value<\/li>\n<li>\\(n\\) \u2014 the number of values<\/li>\n<\/ul>\n<p>Each value is multiplied by its weight, the products are summed, and the total is divided by the sum of all weights. The larger a value's weight, the more it influences the final result.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Weighted Mean \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> a student's grade is based on two components: homework worth weight 2 and a final exam worth weight 1. The homework score is 10 and the exam score is 20.<\/p>\n<p>\\[ \\bar{x}_w = \\frac{10 \\cdot 2 + 20 \\cdot 1}{2 + 1} = \\frac{20 + 20}{3} = \\frac{40}{3} \\approx 13.33 \\]<\/p>\n<p><strong>Result:<\/strong> the weighted mean is \\( \\bar{x}_w \\approx 13.33 \\).<\/p>\n<p>Note that the ordinary (unweighted) <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/average-calculator\/\">average<\/a> of 10 and 20 would be 15 \u2014 the weights pull the result toward the more important value.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Calculator<\/h2>\n<ol>\n<li>Enter the <strong>Number of values<\/strong> you want to include in the calculation (minimum 2). The calculator automatically adds or removes value\/weight fields.<\/li>\n<li>Fill in each <strong>Value<\/strong> field (\\(x_1, x_2, \\ldots\\)) with your data points.<\/li>\n<li>Enter the corresponding <strong>Weight<\/strong> for each value (\\(w_1, w_2, \\ldots\\)). Weights express relative importance and are typically positive numbers.<\/li>\n<li>Read the <strong>Average<\/strong> result, which is the weighted mean of your data.<\/li>\n<\/ol>\n<p>If the sum of all weights is zero, the calculator shows an error, because dividing by zero is undefined \u2014 make sure at least one weight is non-zero.<\/p>\n<h2>What Is the Weighted Mean?<\/h2>\n<p>The weighted mean (also called the weighted average) is a generalization of the arithmetic mean. Instead of treating every value equally, it lets you assign a weight to each value, reflecting how much that value should count toward the final average. It answers the question: \"What is the typical value of this data, taking importance into account?\"<\/p>\n<p>A simple example shows why this matters. Imagine a course where the final exam counts for 60% of the grade and quizzes for 40%. A student who scores 90 on the exam and 70 on quizzes should not get a plain average of 80 \u2014 the weighted mean gives \\(0.6 \\cdot 90 + 0.4 \\cdot 70 = 82\\). Any grade, index, or rating that combines components with different importance is really a weighted mean.<\/p>\n<p>Beyond education, the weighted mean appears everywhere: in finance (portfolio returns, price-weighted indices), in statistics (when some observations are more reliable or frequent than others), and in decision-making models where criteria carry different priorities. Whenever values in a dataset do not contribute equally, the weighted mean is the correct measure of central tendency \u2014 not the plain average.<\/p>\n<p>The weighted mean is one member of a family of means. When all weights are equal, it reduces to the ordinary arithmetic mean. Other members behave differently and are useful in other situations, such as the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/geometric-mean\/\">geometric mean<\/a> for growth rates, the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/harmonic-mean\/\">harmonic mean<\/a> for rates and speeds, and the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/quadratic-mean-calculator-root-mean-square\/\">quadratic mean<\/a> (root mean square) for varying signals and errors.<\/p>\n<h2>Interpreting the Result<\/h2>\n<p>The weighted mean always lies between your smallest and largest values \u2014 no amount of weighting can push it outside the range of the data. Increasing a value's weight moves the result toward that value; in the limit, a value whose weight dominates all others gives a result close to that value.<\/p>\n<p>Weights are relative. Doubling <em>every<\/em> weight (e.g., changing weights 2, 1 into 4, 2) leaves the weighted mean unchanged, because both the numerator and denominator scale by the same factor. This means you can use percentages, counts, or any proportional scale for weights and get the same answer.<\/p>\n<h2>Assumptions and Limitations<\/h2>\n<ul>\n<li><strong>Weights should sum to more than zero.<\/strong> If all weights are 0, the result is undefined and the calculator will report an error.<\/li>\n<li><strong>Negative weights are mathematically possible but rarely meaningful.<\/strong> In most applications (grades, scores, indices) weights represent importance or frequency and should be non-negative.<\/li>\n<li><strong>Weighted vs. percentage weights:<\/strong> if your weights are percentages, they should ideally sum to 100 (or 1). The formula still works if they don't, because it normalizes by the total weight.<\/li>\n<li><strong>Sensitivity to outliers:<\/strong> a value with a large weight strongly affects the result. Double-check weights for unusual data points.<\/li>\n<li>The weighted mean assumes your data can meaningfully be averaged on a linear scale. For growth rates over multiple periods, the geometric mean is usually more appropriate.<\/li>\n<\/ul>\n<h2>Quick Reference: Weights as Percentages<\/h2>\n<p>When weights are given as percentages of a total (common in grading), the weighted mean simplifies to a direct sum:<\/p>\n<p>\\[ \\bar{x}_w = x_1 \\cdot \\frac{w_1}{100} + x_2 \\cdot \\frac{w_2}{100} + \\cdots + x_n \\cdot \\frac{w_n}{100} \\]<\/p>\n<p>This works only when \\(w_1 + w_2 + \\cdots + w_n = 100\\). The calculator handles this case automatically, since dividing by the total weight (100) is part of the general formula.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculate the weighted mean of a dataset where each value has its own weight. Enter your values and weights to get the weighted average instantly \u2014 useful for grades, scores, and financial data.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[72],"class_list":["post-65091","post","type-post","status-publish","format-standard","hentry","category-mathematics","tag-arithmetic-calculators"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/65091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/3168"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=65091"}],"version-history":[{"count":3,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/65091\/revisions"}],"predecessor-version":[{"id":66299,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/65091\/revisions\/66299"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=65091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=65091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=65091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}