The electrical resistance (R) of a wire is given by the formula $R = \rho L/A$, where $\rho$ is resistivity, L is length, and A is the cross-sectional area ($\pi (d/2)^2$).