How to use this calculator
Free Weighted median calculator. Find the first ordered value where cumulative nonnegative weight reaches half the total.
- Enter Values, comma-separated, Matching nonnegative weights. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Find where ordered weights reach their halfway point
A weighted median finds a central value when observations carry unequal nonnegative weights. The result depends on both the value order and how much weight each value contributes.
Inputs for this calculation
- Values, comma-separated: The observations whose central value is sought.
- Matching nonnegative weights: One weight per value, in the same order. Larger weights contribute more cumulative mass; weights need not sum to one.
Formula and method
Sort value-weight pairs by value and add the weights cumulatively. The calculator returns the first value where cumulative weight reaches at least half the total weight; it uses this lower-crossing definition and does not interpolate between neighboring values.
Worked example
Pair values 10, 20, 30, 40 with weights 1, 2, 4, 3. Total weight is 10, so halfway is 5. Cumulative weights are 1, 3, 7, 10; the first value to reach 5 is 30, so the weighted median is 30.
Reading the result
At least half the total weight is at or below 30, and at least half is at or above it under the crossing rule. This is a weighted center, not a weighted average.
Assumptions and limits
Several weighted-median definitions differ when cumulative weight lands exactly at half. This page returns the first crossing value, so other software may report a midpoint in that boundary case.
Frequently asked questions
Do weights have to add up to 1?
No. Multiplying all nonnegative weights by the same positive constant leaves the halfway crossing unchanged.
How do I use the Weighted median calculator?
Enter Values, comma-separated, Matching nonnegative weights. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Weighted median?
Pair values 10, 20, 30, 40 with weights 1, 2, 4, 3. Total weight is 10, so halfway is 5. Cumulative weights are 1, 3, 7, 10; the first value to reach 5 is 30, so the weighted median is 30.
What does the Weighted median calculator calculate?
Free Weighted median calculator. Find the first ordered value where cumulative nonnegative weight reaches half the total.
What assumptions apply to Weighted median?
Several weighted-median definitions differ when cumulative weight lands exactly at half. This page returns the first crossing value, so other software may report a midpoint in that boundary case.