This resistor divider gets you close: <!-- Begin schematic: In order to preserve an editable schematic, please don't edit this section directly. Click the "edit" link below the image in the preview instead. --> ![schematic](https://i.sstatic.net/oUQQe.png) <!-- End schematic --> A sweep of V1 from −10V to +10V outputs 0V to +2.22V: [![enter image description here][1]][1] If you want the full 0V to +2.5V, you'll need some gain \$A\$: $$ A = \frac{2.5}{2.22} = 1.125 $$ In this next design, the op-amp is configured as a non-inverting amplifier with gain 1.125. The overall response to inputs from −10V to +10V is an output going from 0V to +2.5V: <!-- Begin schematic: In order to preserve an editable schematic, please don't edit this section directly. Click the "edit" link below the image in the preview instead. --> ![schematic](https://i.sstatic.net/SusV3.png) <!-- End schematic --> Sadly, that would require a negative supply for the op-amp, because it cannot get all the way to 0V output without one. If you want to use 0V for the negative supply, you'll have to sacrifice a few tens of millivolts at the bottom end. <!-- Begin schematic: In order to preserve an editable schematic, please don't edit this section directly. Click the "edit" link below the image in the preview instead. --> ![schematic](https://i.sstatic.net/ALBss.png) <!-- End schematic --> Note that I've increased R2 slightly, to raise the minimum potential at X to a little over 0V. Since this also increases maximum potential there, I've also had to reduce gain a little. For inputs between -10V and +10V, this last design will output +30mV to +2.5V: [![enter image description here][2]][2] [1]: https://i.sstatic.net/CXyWN.png [2]: https://i.sstatic.net/9fyRm.png