Toolyard

How to Calculate a Weighted Average

The formula

weighted average = Σ(value × weight) ÷ Σ(weight)

Multiply each value by its weight, add those products, then divide by the total of the weights. A plain average is the same formula with every weight set to 1.

A worked example

A course scored out of 100, with four pieces of work:

  • Homework 92, weight 10%
  • Quizzes 85, weight 20%
  • Midterm 78, weight 30%
  • Final 90, weight 40%

Products: 9.2 + 17 + 23.4 + 36 = 85.6. Weights add to 100, so the average is 85.6.

The plain average of those four scores is 86.25. The weighted figure is lower because the weakest score carries the most weight.

The weights do not have to add to 100

Dividing by the total of the weights handles any scale. Credits of 3, 4, 3 and 5 work exactly the same way as percentages of 20, 27, 20 and 33: only the ratios matter. If your weights happen to add to 100 the division is by 100, which is why the step is easy to forget.

GPA is a weighted average

Grade points weighted by credit hours:

  • Biology, 4.0, 4 credits → 16
  • Calculus, 3.0, 3 credits → 9
  • History, 3.7, 3 credits → 11.1
  • Writing, 3.3, 2 credits → 6.6

Total 42.7 over 12 credits = 3.56 GPA. The plain average of the four grades is 3.5, and the gap grows as the credit values spread out.

Two mistakes to watch for

Averaging percentages of different-sized groups. If one store converts 10% of 1,000 visitors and another converts 30% of 100, the combined rate is 130 ÷ 1,100 = 11.8%, not the 20% you get by averaging the two rates. Weight by the group size.

Averaging rates that should be harmonic. Driving 60 km at 30 km/h and 60 km at 60 km/h does not average 45 km/h. It takes 2 h + 1 h for 120 km, so the average speed is 40 km/h. Anything "per unit" needs the totals, not the mean of the rates.

Where else it turns up

A portfolio's return is its holdings weighted by value. A survey result is weighted by how far each group is over- or under-represented. A blended interest rate is each loan's rate weighted by its balance. In every case the weight is the size of the thing behind the number.

Tools

The Weighted Average Calculator takes any list of values and weights, in percentages or credits. The GPA Calculator does the credit-hour version above, and the Standard Deviation Calculator shows how spread out the values behind the average are.

Tools in this guide

More guides

How to Open HEIC Files on WindowsHow to Reduce PDF File SizeHow to Remove Location Data from PhotosHow to Extract Audio from a VideoHow to Make a Wi-Fi QR CodeHow to Sign a PDFHow to Verify a File Checksum (SHA-256)PNG vs JPG vs WebP: Which Image Format to UseHow to Merge PDF FilesHow to Copy Text from an ImageHow to Convert JPG to PDFHow to Convert a PDF to JPGHow to Split a PDF or Extract PagesHow to Rotate a PDF PermanentlyHow to Add Page Numbers to a PDFHow to Watermark a PDFHow to Convert HEIC to JPG on a MacHow to Convert WebP to JPGHow to Reduce Image File SizeHow to Convert a Video to GIFHow to Convert WAV to MP3How to Create a Strong PasswordHow to Convert Celsius to FahrenheitGB vs GiB: Why Your Drive Shows Less SpaceHow to Calculate PercentagesHow to Calculate the Number of Days Between Two DatesWhat Is a Unix Timestamp?How to Compare Two Text FilesHow to Count Words in a DocumentHow to Scan a QR Code from a Screenshot or ImageWhat Is a Hash? MD5, SHA-1 and SHA-256 ExplainedHow to Compress a Photo to 20 KB (or Any Size)How to Remove the Background From a PhotoHow to Test Your MicrophoneHow to Check a Screen for Dead PixelsHow to Record Your ScreenHow to Make a Ringtone for iPhoneHow to Compress a Video to Send ItHow to Remove a Password From a PDFHow to Password Protect a PDFHow to Fill In a PDF FormHow to Convert a PDF to WordHow to Blur a Face in a PhotoHow to Calculate Your BMIHow to Calculate a Mortgage PaymentHow to Schedule a Meeting Across Time ZonesWhat Is a Cron Expression?How to Reverse Complement a DNA SequenceHow to Translate DNA to ProteinHow to Convert GenBank to FASTAHow to Find Restriction Sites in a DNA SequenceHow to Align Two DNA or Protein SequencesHow to Design and Check PCR PrimersHow to Calculate Molar MassHow to Balance a Chemical EquationHow to Make a Solution of a Given MolarityHow to Calculate a Dilution (C1V1 = C2V2)How to Calculate pHHow to Calculate DNA Concentration From A260How to Calculate Insert Amount for a LigationHow to Convert RPM to g (RCF)How to Count Cells With a HemocytometerHow to Use a Punnett SquareHow to Make a Budget With the 50/30/20 RuleDebt Snowball vs Debt AvalancheHow Much Do I Need to Retire?How to Convert Salary to Hourly PayProfit Margin vs MarkupHow to Calculate VAT and Sales TaxHow to Make an InvoiceHow Much House Can I Afford?How to Read Resistor Color CodesHow to Choose a Resistor for an LEDHow to Calculate Voltage Drop in a CableHow Much Concrete Do I Need?How Much Paint Do I Need?How to Calculate a SubnetSignificant Figures RulesHow Loan Amortization WorksROI vs CAGR: How to Measure an Investment's ReturnHow Inflation Shrinks Your SavingsHow to Calculate Your GPAHow to Calculate a TipMinesweeper Strategy: Patterns and TipsSudoku Strategies for BeginnersHow to Win at 2048Solitaire Strategy: How to Win More GamesHow to Type FasterRegex Basics: A Beginner's Guide With ExamplesHEX vs RGB vs HSL ColorsWhat Is Base64 (and URL Encoding)?How to Calculate Half-LifeThe Ideal Gas Law ExplainedHow a Voltage Divider Works555 Timer CalculationsHow to Calculate Roof PitchHow to Calculate Board FeetDNA and Protein Sequence Statistics ExplainedHow to Do a Serial DilutionHow to Calculate qPCR Fold Change With ΔΔCtHow to Calculate Primer Tm and Annealing TemperatureHow to Measure Protein Concentration at A280How to Resuspend Primers and OligosHow to Calculate MOI for Viral InfectionHow to Find the Limiting ReagentHow to Find an Empirical FormulaMolarity vs Molality vs NormalityHow to Count the Words in a PDFHow to Calculate Aspect RatioHow to Use Ohm's LawHow to Calculate TorqueAWG vs mm²: Wire Sizes ExplainedMetric vs Imperial Screw ThreadsShould I Rent or Buy a Home?How to Set a Freelance Hourly RateHow to Make a Standard CurveHow to Calculate an IC50How to Make a PCR Master MixHow to Make an Agarose GelHow to Make an SDS-PAGE GelHow to Make a Stock SolutionHow to Calculate Cable SizeHow to Calculate Cutting Speed and RPMHow to Calculate Roof AreaPPI vs DPIHow to Split Tips FairlyWAV vs MP3: Bitrate and File SizeHow to Compare Two PDFsStandard Deviation vs Standard ErrorHow to Convert kW to AmpsHow to Plan StairsHow Many Tiles Do I Need?How Much Gravel Do I Need?How Much Wallpaper Do I Need?What Is an RC Time Constant?How Many Solar Panels Do I Need?What Grade Do I Need on the Final?How to Add FractionsHow to Solve a Quadratic EquationHow to Run a T-Test