Enter Values
Result
Median between A and B:
Rounded to decimal places.
Show steps
Let A = —, B = —.
The median between two values is the midpoint: (A + B) / 2.
Compute sum: —.
Divide by two: —.
The median between two values is the midpoint: (A + B) / 2.
Compute sum: —.
Divide by two: —.
Calculation History
| # | Timestamp | A | B | Median | Precision |
|---|
History is stored in your browser memory only.
Example Data
Click a row to load values into the form.
| A | B | Expected Median |
|---|---|---|
| -10 | 30 | 10 |
| 7.5 | 2.5 | 5 |
| 1e3 | 1e2 | 550 |
| -5.25 | -9.75 | -7.5 |
| 0 | 99999 | 49999.5 |
Formula Used
The median of a set with exactly two values equals their midpoint. For numbers A and B, the median is:
(A + B) / 2
- Works for any real numbers, including negatives and scientific notation.
- Order does not matter: median(A, B) = median(B, A).
- If A and B are equal, the median equals that common value.
How to Use
- Enter two numbers in the fields for A and B.
- Choose desired decimal precision for rounded output.
- Press Calculate to see the result and steps.
- Every calculation is saved in the history table.
- Use Download CSV or Download PDF to export.
FAQs
For two values only, the median equals the midpoint between them: (A + B) / 2.
No. The midpoint is symmetric: median(A, B) = median(B, A).
Yes. Inputs like 1e3 or -2.5e-2 are accepted and handled correctly.
Use more decimals when inputs are very large or small; fewer decimals for simple, human‑readable results.
History is kept in your browser storage only. Use the Clear button to remove it anytime.
Key Facts & Properties
| Property | Detail |
|---|---|
| Formula | (A + B) / 2 |
| Symmetry | median(A, B) = median(B, A) |
| Range | Always lies between min(A, B) and max(A, B) |
| Distance | Equidistant from A and B: |A − m| = |B − m| |
| Units | Same units as A and B (e.g., meters, dollars) |
| Equal Inputs | If A = B, the median equals that common value |
Additional Worked Examples
| A | B | Median | Notes |
|---|---|---|---|
| -120 | 80 | -20 | Crosses zero; midpoint is negative |
| 3.1416 | 2.7183 | 2.92995 | Rounded here to 5 decimals |
| 1e6 | 2e6 | 1.5e6 | Scientific notation friendly |
| -5.25 | -5.25 | -5.25 | Equal inputs case |