# Phase difference between current and voltage in AC circuits

I know that the current in an inductor would lag by a 90 degrees' phase angle w.r.t. the voltage and the opposite would occur with capacitors; while in resistors, both of them would be in the same phase. But what if we have an inductor or a capacitor with some internal resistance? Would the current in the inductor lag/lead or remain in phase with the voltage? Why?

$$\arg\left(\underline{\text{I}}_{\space\text{in}}\right)=\arg\left(\frac{\underline{\text{V}}_{\space\text{in}}}{\underline{\text{Z}}_{\space\text{in}}}\right)=\arg\left(\underline{\text{V}}_{\space\text{in}}\right)-\arg\left(\underline{\text{Z}}_{\space\text{in}}\right)=$$ $$0-\arg\left(\text{R}+\text{j}\omega\text{L}\right)=-\arctan\left(\frac{\omega\text{L}}{\text{R}}\right)\tag1$$
$$\arg\left(\underline{\text{I}}_{\space\text{in}}\right)=\arg\left(\frac{\underline{\text{V}}_{\space\text{in}}}{\underline{\text{Z}}_{\space\text{in}}}\right)=\arg\left(\underline{\text{V}}_{\space\text{in}}\right)-\arg\left(\underline{\text{Z}}_{\space\text{in}}\right)=$$ $$0-\arg\left(\text{R}+\frac{1}{\text{j}\omega\text{C}}\right)=-\arg\left(\text{R}-\frac{\text{j}}{\omega\text{C}}\right)=-\left(\frac{3\pi}{2}+\arctan\left(\frac{\text{R}}{\omega\text{C}}\right)\right)\tag2$$