Well drainage means drainage of agricultural lands by wells. Agricultural land is drained by pumped wells (vertical drainage) to improve the soils by controlling water table levels and soil salinity.
 Subsurface (groundwater) drainage for water table and soil salinity in agricultural land can be done by horizontal and vertical drainage systems.
Horizontal drainage systems are drainage systems using open ditches (trenches) or buried pipe drains.
Vertical drainage systems are drainage systems using pumped wells, either open dug wells or tube wells.
 Both systems serve the same purposes, namely water table control and soil salinity control . 
Both systems can facilitate the reuse of drainage water (e.g. for irrigation), but wells offer more flexibility.
Reuse is only feasible if the quality of the groundwater is acceptable and the salinity is low.
 Although one well may be sufficient to solve groundwater and soil salinity problems in a few hectares, one usually needs a number of wells, because the problems may be widely spread.
The wells may be arranged in a triangular, square or rectangular pattern.
The design of the well field concerns depth, capacity, discharge, and spacing of the wells.
 The determination of the optimum depth of the water table is the realm of drainage research .
 The basic, steady state, equation for flow to fully penetrating wells (i.e. wells reaching the impermeable base) in a regularly spaced well field in a uniform unconfined (phreatic) aquifer with a hydraulic conductivity that is isotropic is:
 where Q = safe well discharge - i.e. the steady state discharge at which no overdraught or groundwater depletion occurs - (m3/day), K = uniform hydraulic conductivity of the soil (m/day), D = depth below soil surface, 
  
    
      
        
          D
          
            b
          
        
      
    
    {\displaystyle D_{b}}
  
 = depth of the bottom of the well equal to the depth of the impermeable base (m), 
  
    
      
        
          D
          
            m
          
        
      
    
    {\displaystyle D_{m}}
  
 = depth of the watertable midway between the wells (m), 
  
    
      
        
          D
          
            w
          
        
      
    
    {\displaystyle D_{w}}
  
 is the depth of the water level inside the well (m), 
  
    
      
        
          R
          
            i
          
        
      
    
    {\displaystyle R_{i}}
  
 = radius of influence of the well (m) and 
  
    
      
        
          R
          
            w
          
        
      
    
    {\displaystyle R_{w}}
  
 is the radius of the well (m).
 The radius of influence of the wells depends on the pattern of the well field, which may be triangular, square, or rectangular. It can be found as:
 where 
  
    
      
        
          A
          
            t
          
        
      
    
    {\displaystyle A_{t}}
  
 = total surface area of the well field (m2)and N = number of wells in the well field.
 The safe well discharge (Q) can also be found from:
 where q is the safe yield or drainable surplus of the aquifer (m/day) and 
  
    
      
        
          F
          
            w
          
        
      
    
    {\displaystyle F_{w}}
  
 is the operation intensity of the wells (hours/24 per day). Thus the basic equation can also be written as:
 With a well spacing equation one can calculate various design alternatives to arrive at the most attractive or economical solution for watertable control in agricultural land.
 The basic flow equation cannot be used for determining the well spacing in a partially penetrating well-field in a non-uniform and anisotropic aquifer, but one needs a numerical solution of more complicated equations.
 The costs of the most attractive solution can be compared with the costs of a horizontal drainage system - for which the drain spacing can be calculated with a drainage equation - serving the same purpose, to decide which system deserves preference.
 The well design proper is described in
 An illustration of the parameters involved is shown in the figure. The hydraulic conductivity  can be found from an aquifer test.
 The numerical computer program WellDrain for well spacing calculations takes into account fully and partially penetrating wells, layered aquifers, anisotropy (different vertical and horizontal hydraulic conductivity or permeability) and entrance resistance.
 With a groundwater model that includes the possibility to introduce wells, one can study the impact of a well drainage system on the hydrology of the project area. There are also models that give the opportunity to evaluate the water quality.
 SahysMod  is such a polygonal groundwater model permitting to assess the use of well water for irrigation, the effects on soil salinity and on depth of the water table.