In reflection seismology, the anelastic attenuation factor, often expressed as seismic quality factor or Q (which is inversely proportional to attenuation factor), quantifies the effects of anelastic attenuation on the seismic wavelet caused by fluid movement and grain boundary friction. As a seismic wave propagates through a medium, the elastic energy associated with the wave is gradually absorbed by the medium, eventually ending up as heat energy.  This is known as absorption (or anelastic attenuation) and will eventually cause the total disappearance of the seismic wave.
 Q is defined as
 where 
  
    
      
        
          
            
              
                δ
              
              E
            
            E
          
        
      
    
    {\displaystyle {\frac {{\delta }E}{E}}}
  
 is the fraction of energy lost per cycle.  
 The earth preferentially attenuates higher frequencies, resulting in the loss of signal resolution as the seismic wave propagates.  Quantitative seismic attribute analysis of amplitude versus offset effects is complicated by anelastic attenuation because it is superimposed upon the AVO effects.  The rate of anelastic attenuation itself also contains additional information about the lithology and reservoir conditions such as porosity, saturation and pore pressure so it can be used as a useful reservoir characterization tool.
 Therefore, if Q can be accurately measured then it can be used for both compensation for the loss of information in the data and for seismic attribute analysis.
 
 The geometry of a zero-offset vertical seismic profile (VSP) makes it an ideal survey to use for the calculation of Q using the spectral ratio method.  This is because of the coincident raypaths that traverse a given rock layer, ensuring that the only path difference between two reflected waves (one from the top of the interval and one from the bottom) is the interval of interest.  Stacked surface seismic reflection traces would offer similar signal-to-noise ratio over a much larger area but cannot be used with this method because every sample represents a different raypath and therefore will have experienced different attenuation effects.
 Seismic wavelets captured before and after traversing a medium with seismic quality factor, Q, on coincident raypaths will have amplitudes that are related as follows:
 where 
  
    
      
        
          
            A
            
              f
              i
              n
              a
              l
            
          
        
      
    
    {\displaystyle {A_{final}}}
  
 and 
  
    
      
        
          
            A
            
              i
              n
              i
              t
              i
              a
              l
            
          
        
      
    
    {\displaystyle {A_{initial}}}
  
 are the amplitudes at frequency 
  
    
      
        f
      
    
    {\displaystyle f}
  
 after and before traversing the medium; 
  
    
      
        R
      
    
    {\displaystyle R}
  
 is the reflection coefficient; 
  
    
      
        G
      
    
    {\displaystyle G}
  
 is the geometrical spreading factor and 
  
    
      
        t
      
    
    {\displaystyle t}
  
 is the time taken to traverse the medium.
 Taking logarithms of both sides and rearranging:
 This equation shows that if the logarithm of the spectral ratio of the amplitudes before and after traversing the medium is plotted as a function of frequency, it should yield a linear relationship with an intercept measuring the elastic losses (R and G) and the gradient measuring the inelastic losses, which can be used to find Q.
 The above formulation implies that Q is independent of frequency. If Q is frequency-dependent, the spectral ratio method can produce systematic bias in Q estimates 
 In practice prominent phases seen on seismograms are used for estimating the Q. Lg is often the strongest phase on the seismogram at regional distances from 2° to 25°, because of its small-energy leakage into the mantle and used frequently for estimation of crustal Q. However, attenuation of this phase has different characteristics at oceanic crust. Lg may be suddenly disappeared along a particular propagation path which is commonly seen at continental-oceanic transition zones. This phenomenon refers as "Lg-Blockage" and its exact mechanism is still a puzzle.