How this Ohm's law calculator works
Fill in any two of voltage, current, resistance and power, and the other two follow. There are exactly six ways to pick two from four, and this page handles all of them, telling you which rearrangement it used rather than just handing back numbers. Every answer also carries a free correctness check, because the three identities V = IR, P = VI and P = I2R all have to agree, and if they ever did not you would want to know.
The formula
I = V ÷ R = P ÷ V = √(P ÷ R)
R = V ÷ I = V² ÷ P = P ÷ I²
P = VI = I²R = V² ÷ R
This is the power wheel, and every line is the same relationship viewed from a different corner. V is voltage in volts, I current in amps, R resistance in ohms and P power in watts. The reason there are twelve expressions rather than four is that Ohm's law (V = IR) and the power law (P = VI) can be substituted into each other in every direction, which is exactly why knowing any two quantities pins down all four.
Worked example
A 120 V supply across a 240 ohm heater element. I = V ÷ R = 120 ÷ 240 = 0.5 A, and P = V2 ÷ R = 14,400 ÷ 240 = 60 W. Those two numbers describe a perfectly ordinary 60 watt incandescent bulb.
Now the part the textbook version leaves out. That 240 ohms is the resistance hot, at around 2,500 degrees. Measure the same bulb cold with a multimeter and you will read about 20 ohms, because tungsten's resistance rises steeply with temperature.
So at the instant you flip the switch, the bulb briefly draws 120 ÷ 20 = 6 A, twelve times its running current, until the filament heats up in a few tens of milliseconds. That inrush is why bulbs almost always fail at switch-on rather than partway through an evening, and it is why a cold resistance reading looks so wrong against the numbers on the box.
P = I squared R is the one to memorise
Of the twelve expressions above, one earns its keep more than the rest. Power dissipated in a resistance goes as the square of the current. Double the current and you quadruple the heat. That single relationship explains most of what goes wrong in practical electrical work.
It is why an undersized wire overheats while a longer one at the same current does not get hotter per foot. It is why a loose connection is dangerous out of all proportion to its size: the resistance of the bad joint might be a fraction of an ohm, but all of the circuit's current passes through it, and the heat lands in one spot rather than spread along a run. It is why voltage drop costs real money on a long run. And it is why high-voltage transmission exists at all: pushing the same power at a hundred times the voltage means a hundredth of the current, and therefore a ten-thousandth of the loss in the line.
Ohm's law is not a law
Newton's laws describe how everything behaves. Ohm's law describes how some materials behave, and calling it a law is a historical accident that misleads a lot of people. A material is called ohmic if its resistance stays constant as voltage changes, which metals do rather well at a fixed temperature. Plenty of things do not.
A diode passes essentially nothing below about 0.6 V and then passes essentially anything, so its resistance is not a number at all. An LED behaves the same way, which is precisely why an LED wired straight across a battery destroys itself and why it always needs a current-limiting resistor. A thermistor changes resistance with temperature on purpose, and is used as a sensor for exactly that reason. A filament lamp is ohmic at any fixed temperature and wildly non-ohmic across its operating range, as the worked example shows.
None of this makes the calculator wrong; it makes it a snapshot. The numbers here describe the circuit at the operating point you specified. For a resistor, a heating element or a length of wire, that snapshot is the whole story and stays true. For anything with a junction in it, it is one point on a curve, and moving along that curve is what the rest of electronics is about.