In physics and engineering, the quality factor or Q factor is a dimensionless parameter that describes how underdamped an oscillator or resonator is. It is approximately defined as the ratio of the initial energy stored in the resonator to the energy lost in one radian of the cycle of oscillation.^{[1]} Q factor is alternatively defined as the ratio of a resonator's centre frequency to its bandwidth when subject to an oscillating driving force. These two definitions give numerically similar, but not identical, results.^{[2]} Higher Q indicates a lower rate of energy loss and 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. Resonators with high quality factors have low damping, so that they ring or vibrate longer.
The Q factor is a parameter that describes the resonance behavior of an underdamped harmonic oscillator (resonator). 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 highQ 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. HighQ 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, depending on their construction. Systems for which damping is important (such as dampers keeping a door from slamming shut) have Q near 1⁄2. Clocks, lasers, and other resonating systems that need either strong resonance or high frequency stability have high quality factors. Tuning forks have quality factors around 1000. The quality factor of atomic clocks, superconducting RF cavities used in accelerators, and some highQ lasers can reach as high as 10^{11}^{[3]} and higher.^{[4]}
There are many alternative quantities used by physicists and engineers to describe how damped an oscillator is. Important examples include: the damping ratio, relative bandwidth, linewidth and bandwidth measured in octaves.
The concept of Q originated with K. S. Johnson of Western Electric Company's Engineering Department while evaluating the quality of coils (inductors). His choice of the symbol Q was only because, at the time, all other letters of the alphabet were taken. The term was not intended as an abbreviation for "quality" or "quality factor", although these terms have grown to be associated with it. ^{[5]}^{[6]}^{[7]}
The definition of Q since its first use in 1914 has been generalized to apply to coils and condensers, resonant circuits, resonant devices, resonant transmission lines, cavity resonators, material Q and spectral lines.^{[5]}
In the context of resonators, there are two common definitions for Q, which aren't exactly equivalent. They become approximately equivalent as Q becomes larger, meaning the resonator becomes less damped. One of these definitions is the frequencytobandwidth ratio of the resonator:^{[5]}
where f_{r} is the resonant frequency, ?f is the resonance width or full width at half maximum (FWHM) i.e. the bandwidth over which the power of vibration is greater than half the power at the resonant frequency, ?_{r} = 2?f_{r} is the angular resonant frequency, and ?? is the angular halfpower bandwidth.
Under this definition, Q is the reciprocal of fractional bandwidth.
The other common nearly equivalent definition for Q is the ratio of the energy stored in the oscillating resonator to the energy dissipated per cycle by damping processes:^{[8]}^{[9]}^{[5]}
The factor 2? makes Q expressible in simpler terms, involving only the coefficients of the secondorder differential equation describing most resonant systems, electrical or mechanical. In electrical systems, the stored energy is the sum of energies stored in lossless inductors and capacitors; the lost energy is the sum of the energies dissipated in resistors per cycle. In mechanical systems, the stored energy is the maximum possible stored energy, or the total energy, i.e. the sum of the potential and kinetic energies at some point in time; the lost energy is the work done by an external conservative force, per cycle, to maintain amplitude.
More generally and in the context of reactive component specification (especially inductors), the frequencydependent definition of Q is used:^{[8]}^{[10]}^{[failed verification  see discussion]}^{[9]}
where ? is the angular frequency at which the stored energy and power loss are measured. This definition is consistent with its usage in describing circuits with a single reactive element (capacitor or inductor), where it can be shown to be equal to the ratio of reactive power to real power. (See Individual reactive components.)
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 approximately the ratio of the stored energy to the energy dissipated over one radian of the oscillation; or nearly equivalently, at high enough Q values, 2? times the ratio of the total energy stored and the energy lost in a single cycle.^{[13]}
It is a dimensionless parameter that compares the exponential 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. More precisely, the frequency and period used should be based on the system's natural frequency, which at low Q values is somewhat higher than the oscillation frequency as measured by zero crossings.
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 e^{2?}, or about 1⁄535 or 0.2%, of its original energy.^{[14]} This means the amplitude falls off to approximately e^{?} or 4% of its original amplitude.^{[15]}
The width (bandwidth) of the resonance is given by (approximately):
where f_{N} is the natural 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 resonant frequency is often expressed in natural units (radians per second), rather than using the f_{N} in hertz, as
The factors Q, damping ratio ?, natural frequency ?_{N}, attenuation rate ?, and exponential time constant τ are related such that:^{[16]}
and the damping ratio can be expressed as:
The envelope of oscillation decays proportional to e^{?t} or e^{t/τ}, where ? and τ can be expressed as:
and
The energy of oscillation, or the power dissipation, decays twice as fast, that is, as the square of the amplitude, as e^{2?t} or e^{2t/τ}.
For a twopole lowpass filter, the transfer function of the filter is^{[16]}
For this system, when Q > 1⁄2 (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 (that is, of the output after an impulse) into the system. A higher quality factor implies a lower attenuation rate, and so highQ systems oscillate for many cycles. For example, highquality 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.
The 2sided bandwidth relative to a resonant frequency of F_{0} Hz is F_{0}/Q.
For example, an antenna tuned to have a Q value of 10 and a centre frequency of 100 kHz would have a 3 dB bandwidth of 10 kHz.
In audio, bandwidth is often expressed in terms of octaves. Then the relationship between Q and bandwidth is
where BW is the bandwidth in octaves.^{[18]}
In an ideal series RLC circuit, and in a tuned radio frequency receiver (TRF) the Q factor is:^{[19]}
where R, L and C are the resistance, inductance and capacitance of the tuned circuit, respectively. The larger the series resistance, the lower the circuit Q.
For a parallel RLC circuit, the Q factor is the inverse of the series case:^{[20]}^{[19]}
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. This is useful in filter design to determine the bandwidth.
In a parallel LC circuit where the main loss is the resistance of the inductor, R, in series with the inductance, L, Q is as in the series circuit. This is a common circumstance for resonators, where limiting the resistance of the inductor to improve Q and narrow the bandwidth is the desired result.
The Q of an individual reactive component depends on the frequency at which it is evaluated, which is typically the resonant frequency of the circuit that it is used in. The Q of an inductor with a series loss resistance is the Q of a resonant circuit using that inductor (including its series loss) and a perfect capacitor.^{[22]}
where:
The Q of a capacitor with a series loss resistance is the same as the Q of a resonant circuit using that capacitor with a perfect inductor:^{[22]}
where:
In general, the Q of a resonator involving a series combination of a capacitor and an inductor can be determined from the Q values of the components, whether their losses come from series resistance or otherwise:^{[22]}
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.^{[23]}
The Q of a musical instrument is critical; an excessively high Q in a resonator will not evenly amplify the multiple frequencies an instrument produces. For this reason, string instruments often have bodies with complex shapes, so that they produce a wide range of frequencies fairly evenly.
The Q of a brass instrument or wind instrument needs to be high enough to pick one frequency out of the broaderspectrum buzzing of the lips or reed. By contrast, a vuvuzela is made of flexible plastic, and therefore has a very low Q for a brass instrument, giving it a muddy, breathy tone. Instruments made of stiffer plastic, brass, or wood have higherQ. An excessively high Q can make it harder to hit a note. Q in an instrument may vary across frequencies, but this may not be desirable.
Helmholtz resonators have a very high Q, as they are designed for picking out a very narrow range of frequencies.
In optics, the Q factor of a resonant cavity is given by
where f_{o} is the resonant frequency, E is the stored energy in the cavity, and P = dE/dt 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. Q factor is of particular importance in plasmonics, where loss is linked to the damping of the surface plasmon resonance.^{[24]} While loss is normally considered a hindrance in the development of plasmonic devices, it is possible to leverage this property to present new enhanced functionalities.^{[25]}