# LTspice Measure Phase

i am working with LTSpice simulation. And i am creating a bodeplot of an special circuit with the AC Simulation. How can i use the meas. command to measure the amplitude by -135° phase? I already tried using .meas AC bw FIND v(out) AT phase(V(out)=-135° but it failed. I don't find any answers researching this problem in the internet.

• I'm not familiar with phase measurements, but I notice your command is missing a ), so maybe that's why it failed. Dec 22 '20 at 16:26
• Thx for your answer, but also with a ")" it doesnt work. :/ Dec 22 '20 at 17:00

There are two small problems with your simulation. First the command you are looking for is ph and not phase. Second, this approach is only going to work if there is a frequency point which produces the given phase. You can try the following command and ensure that your frequency sweep has many points:

.meas AC bw FIND V(out) WHEN ph(V(out))=-89.9

UPDATE #1

If you using a bandpass filter, instead of tracking the phase you can check the two points where the filter attenuates the magnitude by 3dB (or 0.707) using the following measurements:

.meas AC f1 find V(out) when mag(V(out))=0.707 cross=1
.meas AC f2 find V(out) when mag(V(out))=0.707 cross=2


In order for it to work, you have to make sure that the magnitude is normalized, meaning that the pass band should have a magnitude equal to 0dB (or 1).

Below is a simple simulation:

• Thank you very much vtolentino ! It works :) Dec 23 '20 at 15:00
• Now, i want to use these point .meas AC bw FIND V(out) WHEN ph(V(out))=-89.9 to get the bandwidth: .meas AC BAW TRIG V(out=bw/sqrt(2) RISE=1 TARG V(out)=bw/sqrt(2) Fall=last . But it failed :/ These methode worked when i measured the maximal magnitude. But in my special case i cant use these methode because i have resonance peaks so. Do u have a solution when i found the -135° point? Dec 23 '20 at 15:21
• If you have a close look at the measurement, it shows already the bandwidth for the given phase. In my example it is 91.189kHz. Dec 23 '20 at 16:13
• Yes, it does, but that only works for an low/high pass filter. But my circuit is an bandpassfilter with resonance frequence Dec 23 '20 at 16:25
• This should still work for a bandpass filter provided that you measure the phase margin twice. Could you share your spice simulation? Dec 23 '20 at 18:10