# RC circuit - phase current

I have a simple RC circuit as below :

I'm trying to visualize current curve and voltage curve (Vout and I(R1)) vs Vin using LtSpice and I obtain the result below:

It's OK that the Vout is leading Vin. However, I do not understand why the current curve I(R1) is completely out of phase with Vout. Any one have explanation for that ? Thanks for your support.

• The voltage across the resistor is in phase with the current through it.
– Chu
Aug 6 '20 at 15:10
• @Chu: Thanks for your answer. Yes It must be in phase. But I don't understand why I obtain the current (I(R1)) and Vout out of phase. Is there any explanation ? Or How I can fix this ? Thanks. Aug 6 '20 at 15:21
• If the current's positive direction is defined, in your simulation, as from ground to Vout that's what you get.
– user128351
Aug 6 '20 at 15:33
• Turn the resistor around 180 degrees and you'll get the results you expect. Aug 6 '20 at 15:43
• When you use the current probe on LTSpice on that resistor, which direction does the tip of the arrow point?
– Big6
Aug 6 '20 at 16:53