PRACTICAL CALCULATIONS

Sum and signed difference calculator

Enter the sum of two amounts and their signed difference. The result preserves their order, including when the first amount is smaller.

Result

First amount
32
Second amount
18

Recover and check both amounts

A sum of 50 and difference of 14 give first amount 32 and second amount 18. Their sum returns 50 and their first-minus-second difference returns 14. Changing the difference to -14 reverses the two outputs.

Choose the domain for your task

The formulas are first = (sum + difference) / 2 and second = (sum − difference) / 2. The tool permits negative and fractional results. For nonnegative whole counts, separately check that the outputs meet those restrictions. Finite decimal inputs have magnitude at most 10^20, with 50-significant-digit arithmetic.

Rebuild both entered values

Add the two returned amounts to recover the sum, then subtract the second from the first to recover the signed difference. Keep the order labels attached when exporting the pair.

Work through the reasoning

Checking two amounts recovered from their sum and difference