In physics and engineering the quality factor or Q factor is a dimensionless parameter that describes how underdamped an oscillator or resonator is,^{[1]} or equivalently, characterizes a resonator's bandwidth relative to its center frequency.^{[2]} Higher Q indicates a lower rate of energy loss relative to the stored energy of the oscillator; the oscillations die out more slowly. A pendulum suspended from a highquality bearing, oscillating in air, has a high Q, while a pendulum immersed in oil has a low one. Oscillators with high quality factors have low damping so that they ring longer.
Sinusoidally driven resonators having higher Q factors resonate with greater amplitudes (at the resonant frequency) but have a smaller range of frequencies around that frequency for which they resonate; the range of frequencies for which the oscillator resonates is called the bandwidth. Thus, a high Q tuned circuit in a radio receiver would be more difficult to tune, but would have more selectivity; it would do a better job of filtering out signals from other stations that lie nearby on the spectrum. High Q oscillators oscillate with a smaller range of frequencies and are more stable. (See oscillator phase noise.)
The quality factor of oscillators varies substantially from system to system. Systems for which damping is important (such as dampers keeping a door from slamming shut) have Q = ^{1}⁄_{2}. Clocks, lasers, and other resonating systems that need either strong resonance or high frequency stability need high quality factors. Tuning forks have quality factors around Q = 1000. The quality factor of atomic clocks and some highQ lasers can reach as high as 10^{11}^{[3]} and higher.^{[4]}
There are many alternate quantities used by physicists and engineers to describe how damped an oscillator is and that are closely related to the quality factor. Important examples include: the damping ratio, relative bandwidth, linewidth and bandwidth measured in octaves.
The concept of Q factor originated in electronic engineering, as a measure of the 'quality' desired in a good tuned circuit or other resonator.
Contents 
There are two separate definitions of the quality factor that are equivalent for high Q resonators but are different for strongly damped oscillators.
Generally Q is defined in terms of the ratio of the energy stored in the resonator to the energy being lost in one cycle:
The factor of 2π is used to keep this definition of Q consistent (for high values of Q) with the second definition:
where f_{r} is the resonant frequency, Δf is the bandwidth, ω_{r} is the angular resonant frequency, and Δω is the angular bandwidth.
The definition of Q in terms of the ratio of the energy stored to the energy dissipated per cycle can be rewritten as:
where ω is defined to be the angular frequency of the circuit (system), and the energy stored and power loss are properties of a system under consideration.
The Q factor determines the qualitative behavior of simple damped oscillators. (For mathematical details about these systems and their behavior see harmonic oscillator and linear time invariant (LTI) system.)
In negative feedback systems, the dominant closedloop response is often wellmodeled by a secondorder system. The phase margin of the openloop system sets the quality factor Q of the closedloop system; as the phase margin decreases, the approximate secondorder closedloop system is made more oscillatory (i.e., has a higher quality factor).
Physically speaking, Q is 2π times the ratio of the total energy stored divided by the energy lost in a single cycle or equivalently the ratio of the stored energy to the energy dissipated per one radian of the oscillation.^{[6]}
It is a dimensionless parameter that compares the time constant for decay of an oscillating physical system's amplitude to its oscillation period. Equivalently, it compares the frequency at which a system oscillates to the rate at which it dissipates its energy.
Equivalently (for large values of Q), the Q factor is approximately the number of oscillations required for a freely oscillating system's energy to fall off to 1 / e^{2π}, or about 1/535, of its original energy.^{[7]}
The width (bandwidth) of the resonance is given by
where f_{0} is the resonant frequency, and Δf, the bandwidth, is the width of the range of frequencies for which the energy is at least half its peak value.
The factors Q, damping ratio ζ, and attenuation α are related such that^{[8]}
So the quality factor can be expressed as
and the exponential attenuation rate can be expressed as
For any 2^{nd} order lowpass filter, the response function of the filter is^{[8]}
For this system, when Q > 0.5 (i.e, when the system is underdamped), it has two complex conjugate poles that each have a real part of α. That is, the attenuation parameter α represents the rate of exponential decay of the oscillations (e.g., after an impulse) of the system. A higher quality factor implies a lower attenuation, and so high Q systems oscillate for long times. For example, high quality bells have an approximately pure sinusoidal tone for a long time after being struck by a hammer.
For an electrically resonant system, the Q factor represents the effect of electrical resistance and, for electromechanical resonators such as quartz crystals, mechanical friction.
In an ideal series RLC circuit, and in a tuned radio frequency receiver (TRF) the Q factor is:
where R, L and C are the resistance, inductance and capacitance of the tuned circuit, respectively. For a parallel RLC circuit, the Q factor is the inverse of the series case:^{[9]}
In a parallel RLC circuit where the R is in series with the L, Q is the same. This is the most common circumstance because, for resonators, limiting the resistance of the inductor to improve Q and narrowing the bandwidth is the desired result.
Consider a circuit where R, L and C are all in parallel. The lower the parallel resistance, the more effect it will have in damping the circuit and thus the lower the Q. In this case the X and R are interchanged. This is useful in filter design to determine the bandwidth.
For a complex impedance
the Q factor is the ratio of the reactance to the resistance (or equivalently, the absolute value of the ratio of reactive power to real power), that is:
Thus, one can also calculate the Q factor for a complex impedance by knowing just the power factor of the circuit
or just the tangent of the phase angle
where φ is the phase angle and PF is the power factor of the circuit.
For a single damped massspring system, the Q factor represents the effect of simplified viscous damping or drag, where the damping force or drag force is proportional to velocity. The formula for the Q factor is:
where M is the mass, k is the spring constant, and D is the damping coefficient, defined by the equation F_{damping} = − Dv, where v is the velocity.^{[10]}
In optics, the Q factor of a resonant cavity is given by
where f_{o} is the resonant frequency, is the stored energy in the cavity, and is the power dissipated. The optical Q is equal to the ratio of the resonant frequency to the bandwidth of the cavity resonance. The average lifetime of a resonant photon in the cavity is proportional to the cavity's Q. If the Q factor of a laser's cavity is abruptly changed from a low value to a high one, the laser will emit a pulse of light that is much more intense than the laser's normal continuous output. This technique is known as Qswitching.
