AnsRioSmart tools. Clear answers.
Home / Math & statistics / Weighted median
Math & statistics

Weighted median

Weighted median with an explained formula, a worked example and checks for invalid or unsupported inputs.

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Calculate.

QUICK ANSWER

20

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Sort value/weight pairs, then return the first value whose cumulative positive weight reaches half the total.

Input definitions

Values
Plain text; maximum 200,000 characters.
Nonnegative weights
Plain text; maximum 200,000 characters.

A worked example

Values
10, 20, 30
Nonnegative weights
1, 3, 1
20

Assumptions & limits

At exactly half of the total weight, the lower weighted median is returned. Zero-weight values are ignored.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-11-18. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

What happens if cumulative weight is exactly half?

This tool returns the lower weighted median: the first sorted value whose cumulative positive weight reaches half the total. Zero-weight observations are ignored.

Why can statistical results differ between tools?

Denominator, interpolation and boundary conventions can differ. Use the method and assumptions on this page to compare the same definition; displayed decimals may also be rounded.

How does the Weighted median tool work?

Sort value/weight pairs, then return the first value whose cumulative positive weight reaches half the total.

What are the assumptions and limits of Weighted median?

At exactly half of the total weight, the lower weighted median is returned. Zero-weight values are ignored.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work