# Optical bench > How do lenses make an image? Put one or two lenses on a bench, drag the object and the focal points, and watch the rays build the image. Build a ray-optics bench with one or two thin lenses: drag the object and the focal points and see the rays, image position, size and magnification live. - Page: https://how.box/optics/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/optics/?f1={f1}&d={d}&h={h}&s={s}&f2={f2}&g={g} - `f1` (number -1000 to 1000): Focal length of lens 1 (negative: diverging). Example: `10`. - `d` (number 0.5 to 1000): Object distance in front of lens 1. Example: `15`. - `h` (number 0.1 to 100): Object height. Example: `1`. - `s` (off or on): on or off: whether a second lens follows. Example: `on`. - `f2` (number -1000 to 1000): Focal length of lens 2 (negative: diverging); used with s=on. Example: `10`. - `g` (number 0.5 to 1000): Distance between lens 1 and lens 2; used with s=on. Example: `35`. Example answer: https://how.box/optics/?f1=10&d=15&h=1&s=on&f2=10&g=35 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `optics_trace`: Image formed by one or two thin lenses on an optical bench (all lengths in cm). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"optics_trace","arguments":{"focal_1":10,"object_distance":15,"object_height":1,"second":"on","focal_2":10,"lens_gap":35}}}` - GET: https://how.box/mcp/run/optics_trace?focal_1=10&object_distance=15&object_height=1&second=on&focal_2=10&lens_gap=35 ## How it works A thin lens bends light rays so that those from one point of an object meet again at one point of the image. A converging lens (thicker in the middle) pulls rays together; a diverging lens (thinner in the middle) spreads them. The focal length f tells how strongly: the shorter, the stronger. For one lens, 1/f = 1/dₒ + 1/dᵢ, where dₒ is the object distance and dᵢ the image distance. The magnification is m = −dᵢ/dₒ: a negative value means the image is upside down, and a positive dᵢ means a real image you could catch on a screen, a negative one a virtual image you only see by looking through the lens. With two lenses, the image of the first is the object of the second, and the magnifications multiply. For example, a 10 cm lens with an object 30 cm away gives an image 15 cm behind it, 0.5 times the size and upside down. The drawing follows the three principal rays: parallel to the axis, through the lens's centre and through its focal point. It assumes thin lenses and small angles, so it ignores lens errors such as blur at the edges. Source: OpenStax University Physics, volume 3, section 2.4. ## FAQ **What is the difference between a real and a virtual image?** A real image is where light rays actually meet, so a screen placed there shows it. A virtual image is where rays only seem to come from, as in a magnifying glass; you can see it but not project it. **Why is the image upside down?** A single converging lens flips the picture when the object is beyond the focal point. A negative magnification means exactly that. Close to the lens, inside the focal point, the image is upright and magnified. **What happens when the object is exactly at the focal point?** The rays leave the lens parallel, so they never meet: the image forms at infinity. A second lens could still bring them together, but this tool only reports that no finite image forms. **How can a diverging lens make an image?** A diverging lens always makes a smaller, upright virtual image on the object's side. You see it by looking through the lens, as with the peephole in a door. **Can I use a mirror here?** This bench is for lenses. For a single lens or a curved mirror in other units, see the lenses calculator, which uses the same equation. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)