Ohm's law states that voltage equals current times resistance: V = I × R. Rearranged to find resistance, R = V ÷ I. So 12 volts driving 2 amps means a resistance of 12 ÷ 2 = 6 ohms. The power dissipated is P = V × I = 12 × 2 = 24 watts. The calculator above solves resistance and power from any voltage and current you enter.
Ohm's law is the single most important equation in electronics and electrical work. It ties together the three fundamental quantities — voltage (electrical pressure), current (flow of charge), and resistance (opposition to flow) — and, combined with the power law P = V × I, it lets you find any of these values when you know two others. Master these two equations and you can analyze virtually any DC or resistive circuit.