Lens Simulator see image formation change in real time

Pick a convex or concave lens, set focal length and object distance, and watch the ray diagram and image calculations update.

Read the guide

Lens Simulator interactive ray diagram

Start Lens Simulator here: enter lens type, focal length, object distance, and object height to calculate image distance, magnification, image height, orientation, and real or virtual image type.

Controls

Choose a lens, move the object, and adjust focal length or height to update the ray diagram in real time.

Ray diagram lab

Convex lens

Real image
Image at infinity

Live result

Image status

Image type Real image
Orientation Inverted
Size Reduced

Thin-lens equation

Calculations

1/f = 1/do + 1/di

Signed focal length

15.0 cm

Image distance

26.3 cm

Magnification

-0.75

Image height

-3.0 cm

Conclusion

Experiment notes

Move the object across the focal point or switch to a concave lens to compare real, virtual, upright, inverted, enlarged, and reduced images.

Lens Simulator uses the thin-lens equation with the common sign convention: converging lenses have positive focal length, diverging lenses have negative focal length, real images have positive image distance, and virtual images have negative image distance.

Lens Simulator ray diagram workflow

Lens Simulator connects lens type, focal length, object distance, object height, image distance, magnification, image size, and image orientation in one visual workflow.

Lens Simulator live controls

Choose convex or concave lens mode, then change focal length, object distance, and object height while Lens Simulator redraws the principal rays.

Lens Simulator interface with lens type, focal length, object distance, object height controls, and a ray diagram

Lens Simulator image comparison

Move the object across the focal point in Lens Simulator to compare real and virtual images, upright and inverted images, and enlarged or reduced image size.

Lens Simulator comparison of a real inverted image and a virtual upright image with ray diagrams

Lens Simulator quick guide

Use this Lens Simulator guide to turn the thin-lens equation and ray tracing rules into repeatable image-formation practice.

  1. Set up Lens Simulator

    Choose convex or concave lens mode, then enter focal length, object distance, and object height.

    • Start with a convex lens and an object beyond the focal length
    • Switch to concave lens mode to see a virtual upright image
    Open simulator
  2. Change Lens Simulator variables

    Move the object or change focal length one step at a time. Lens Simulator updates the image distance, magnification, and ray diagram immediately.

    • Place the object at 2F to see a same-size inverted image
    • Move inside F to create a virtual upright image
  3. Explain Lens Simulator results

    Use the image distance sign, magnification sign, and image height to describe whether the image is real or virtual, upright or inverted, enlarged or reduced.

    For homework, state the sign convention before interpreting the image type.