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.

Make it your own ⌁ Runs on your device

Your inputs are processed locally and are not added to analytics or saved history.

YOUR RESULT
Ready when you are.

Enter your values, then select Calculate.

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 use automated checks; this does not imply independent professional certification.

Method updated 2026-10-17. Content checked against the stated method and examples. Our verification approach.

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.

↗
Made for the question in front of you.

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

How we work