Home · Science articles

Ohm’s Law Virtual Lab: Measure Current and Graph Voltage

A single cell and resistor form a closed circuit beside a graph with equally spaced points on a line through the origin.

Set up an ideal one-resistor circuit. Predict six current readings, turn them into a graph, and learn what Ohm’s law cannot tell you about a real circuit.

In an ideal one-resistor circuit, doubling the voltage across the same resistor doubles the current. Keeping the voltage the same while doubling the resistance halves the current. Ohm’s law gives those predictions when the resistance is constant: V = IR. This virtual lab is a way to check both patterns and to learn what the simple equation does not promise about real equipment.

Three quantities you can measure or calculate

Voltage is a difference in electric potential between two points; energy transferred per unit charge is one way to think about it. Voltage is measured in volts (V). Current, measured in amperes (A), is the rate of flow of charge. Resistance, in ohms (Ω), describes how much voltage must be applied across a component to get a given current in this model. One ohm corresponds to one volt per ampere.

In a simple model with a closed path, an ideal source, one resistor and negligible wire resistance, the source voltage is the voltage across the resistor. To predict the current divide the voltage by the resistance: I = V/R. In a real circuit with several components, the voltage across one resistor need not equal the full source voltage. OpenStax’s simple circuits chapter explains what is meant by the voltage across an element.

Activity A: keep the same resistor

Find Ohm’s law in KeyhanGate’s experiment catalog. The public listing identifies the model; the interactive run may require access to that experiment. You can perform the same comparison on paper from the expected values below or use the University of Colorado Boulder’s PhET Ohm’s Law model with values within its available controls. Stay in the virtual circuit for this exercise. Do not copy the example using mains electricity or try shorting a real battery.

Keep R at 100 Ω and predict the current at 3 V, 6 V and 9 V. Write your predictions before running the model. The expected currents are 0.030 A, 0.060 A and 0.090 A, which are 30 mA, 60 mA and 90 mA. The conversion is 1 A = 1,000 mA. To catch a unit mistake, convert the 60 mA value back to 0.060 A and check that multiplying by 100 Ω returns 6 V.

Put voltage on the horizontal axis and current in amperes on the vertical axis. Mark the three points and draw the expected line back to the origin at 0 V and 0 A. The line’s slope is 1/R, here 0.010 A per volt. This means each added volt gives the same added current at this resistance. If you swap the axes, the slope becomes R in volts per ampere. The physical result does not change just because the graph has a different layout.

Activity B: keep the same voltage

Repeat with 6 V fixed and resistances of 50 Ω, 100 Ω and 200 Ω. Expect 0.120 A, 0.060 A and 0.030 A. Compare with the first sweep: equal added volts at constant resistance give equal added currents, while increasing resistance does not give a straight-line drop of current when you plot current directly against R. With 6 V fixed, plot current against 1/R to recover a straight line. The 100 Ω and 6 V entry appears in both sweeps and should give the same reading; that little cross-check helps catch a misplaced setting or a unit mix-up.

What the simulation leaves out

The animated circuit helps show that the modeled current changes. The dots are not measured electron speeds, and the ideal calculation does not model heating, voltage sag inside a battery, or the tolerances of a real resistor. An incandescent lamp’s filament warms as current passes through it; its resistance can change. Diodes need not follow a straight voltage–current graph either. OpenStax’s university treatment of Ohm’s law contrasts ohmic and nonlinear behavior.

Is a larger current always a better circuit?

No. A real device must stay within its ratings; the modeled numbers are not instructions for wiring. For the next virtual comparison, open the science-packs directory and try another case with exactly one changed input. If you want to explore a different electrical question, the Faraday introduction concerns induction rather than a fixed resistor’s current; the full scientist model may require a pass.