Any two of voltage, current and resistance gives the third - and the power.
Enter any two - the third (and the power) appears.
Ohm's law links voltage (V), current (I) and resistance (R): V = I × R, so I = V ÷ R and R = V ÷ I. The power is P = V × I. Enter any two values and the calculator works out the third and the power.
You can type values the way they're printed on parts and schematics: 4.7k is 4,700 Ω, 2M2 is 2.2 MΩ, 20m is 0.02 A (20 mA), 100u is 0.0001.
An LED needs about 20 mA and drops 2 V, fed from 12 V. The resistor has the remaining 10 V across it, so R = 10 V ÷ 0.02 A = 500 Ω - use the next standard value up, 510 Ω or 560 Ω. It dissipates 10 V × 0.02 A = 0.2 W, so a 1/4 W resistor is enough, a 1/2 W one runs cooler.
Ohm's law is how you sanity-check a circuit with a meter: measure the voltage across a resistor of known value and you know the current through it without breaking the circuit. A low-value resistor that's cooked usually means the current through it was far higher than designed - look for the shorted part downstream. See where parts like this sit on real boards in our board library.
Circuit Fixers has photos of real circuit boards from repairs with every component marked - find your device and see what each part is and where it sits.
Search the board library Parts catalogue