Canonical: https://toolipedia.app/map-range-linear-interpolation-and-clamp-calculator

# Map Range, Linear Interpolation and Clamp Calculator

Remap a value from one range to another, or use lerp, inverse lerp, clamp and two-point linear interpolation, with the formula and the working shown.

Breadcrumbs: Toolipedia > Online calculators > Maths and school calculators > Map Range, Linear Interpolation and Clamp Calculator

## About Map Range, Linear Interpolation and Clamp Calculator

Four small formulas that appear in games, design tools and data work. Map a value from one range to another with out = outFrom + (value − inFrom)(outTo − outFrom)/(inTo − inFrom), optionally clamped; compute lerp(a, b, t) = a + t(b − a) and the inverse lerp that recovers t; clamp a value between two limits; or interpolate along the straight line through two points. Mapping 5 from 0–10 to 0–100 gives 50.

## How to use Map Range, Linear Interpolation and Clamp Calculator
1. Choose map, lerp, clamp or two-point interpolation.
2. Enter the value and the ranges, or the points, in the visible fields.
3. Read the result, the position between 0 and 1 and the formula with your numbers filled in.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- map range linear interpolation and clamp calculator
- remap a value from one range to another
- lerp calculator
- inverse lerp
- clamp calculator
- linear interpolation calculator

## Frequently asked questions

### What is the difference between lerp and map range?

Lerp turns a fraction t into a value between a and b. Map range does the full job: it finds t from the input range first, then applies lerp with the output range.

### Can the ranges run backwards?

Yes. A reversed range such as 100 to 0 simply flips the direction, so a quarter of the way along maps to 75 instead of 25. Only a zero-width input range is rejected.

### What happens outside the input range?

Without clamping the formula extrapolates, so 15 on a 0–10 range maps to 150 on 0–100. Tick the clamp option to stop at the output limits.

### Is Map Range, Linear Interpolation and Clamp Calculator free?

Yes. Map Range, Linear Interpolation and Clamp Calculator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with Map Range, Linear Interpolation and Clamp Calculator:
- [Interpolation Calculator](https://toolipedia.app/lagrange-interpolation-calculator)
- [Linear regression calculator](https://toolipedia.app/linear-regression-calculator)
- [Inverse trig functions calculator](https://toolipedia.app/inverse-trig-calculator)
- [GPA to percentage converter](https://toolipedia.app/gpa-to-percentage-converter)
- [CSS clamp generator](https://toolipedia.app/css-clamp-generator)
