This tool converts a value from one range to its corresponding value in a new range.

As an example let’s say the old range was 10 to 50 and the new range is -100 to 0, then what does a value of 25 in the old range convert to in the new range?

**Calculator**

Enter

- Old value
- Minimum and maximum values from the old range
- Min and max values from the new range

The calculator will give the new value from the new range

**Example Calculation**

With the following range values

Min | Max | |
---|---|---|

Old Range | 10 | 50 |

New Range | -100 | 0 |

A value of 25 is converted to -62.5

**How is this value calculated?**

The linear equation is used to first find the slope of the line that connects the two points. Think of the new range as plotted on the y-axis and the old range on the x-axis.

The basic equation that describes this is

y = m*x+c

where

m = (new_range_{max} – new_range_{min})/(old_range_{max} – old_range_{min})

the intercept point c is calculated using the equation

c = y-m*x

in this case

c = new_range_{max} – m*old_range_{max}

**Related Posts**

- This technique is used to convert from RSSI to dBm