- Introduced by
- Michael G. McDonald and Arlen W. Harbaugh (U.S. Geological Survey)
- Year
- 1984 (original release); continuously updated through MODFLOW-6 (2017)
- Type
- Numerical groundwater flow simulation
- Family
- Finite-difference subsurface hydrology
What does it do?
MODFLOW is the U.S.
Geological Survey's open-source, modular finite-difference model for simulating three-dimensional groundwater flow through porous media. Developed at the Survey and continuously updated, most recently as MODFLOW-6 (2017), it is widely used in civil engineering, environmental consulting, water-resource management, and groundwater contamination studies.
The intuition behind the method
Think of an underground aquifer as a vast sponge divided into thousands of small blocks. MODFLOW assigns each block its own physical properties — how permeable the material is, how much water it holds — and then tracks water moving from block to block according to Darcy's law. By solving a system of equations for every block simultaneously, the model produces a map of hydraulic head (water pressure) across the entire aquifer through time. Engineers use these head maps to estimate the drawdown a proposed well would cause, which informs yield assessment alongside sustainability criteria. With a coupled transport model, they can also see where a contaminant plume is likely to migrate, and how a dam will affect nearby water tables.
History
MODFLOW was developed at the U.S. Geological Survey as a modular code in which each hydrological process is handled by an independent package, so the program can be extended without changing the core solver. Arlen W. Harbaugh is the author of the MODFLOW-2005 report, which documents the Ground-Water Flow Process. Successive releases up to MODFLOW-2005 added solvers, packages, and documentation. MODFLOW-6, released in 2017, restructured the code around an object-oriented framework and introduced the Groundwater Flow (GWF) and Groundwater Transport (GWT) models under a unified simulation platform.
When to use it
MODFLOW is appropriate whenever a quantitative, spatially distributed estimate of groundwater flow or head distribution is required and sufficient field data exist to characterise the aquifer. Typical applications include municipal well-field design, dewatering analysis for excavations, groundwater-surface-water interaction studies, contaminant plume prediction, and aquifer recharge assessment. The method is not suitable when data are too sparse to parameterize a grid reliably — in such cases simpler analytical solutions or statistical water-balance approaches may be more defensible. MODFLOW also assumes flow through porous media and is not appropriate for karst conduit systems without specialised extensions.
Limitations and considerations
- Structured rectangular grids (the DIS option) cannot conform to irregular geological boundaries or curved features without significant cell refinement, which increases computational cost. This limit applies to the structured grid option rather than to every MODFLOW version.
- Standard MODFLOW assumes saturated flow through porous media; karst, fractured rock, and variably saturated (vadose-zone) flow require specialised extensions or alternative codes.
- Data requirements are high: reliable hydraulic conductivity fields, boundary conditions, and calibration targets (head measurements, streamflow records) are needed for defensible results.
- Model results are only as good as the conceptual model; structural errors in the conceptualization propagate through all subsequent steps and cannot be corrected by calibration alone.
- The standard formulation represents groundwater as Darcy-law flow in saturated porous media, with each aquifer discretised into layers of cells that carry lumped properties, and with constant fluid density unless a variable-density option is used. Where these assumptions do not hold, for example in unsaturated zones, fractured rock, or strongly density-driven settings, results should not be relied on without the relevant extension or a different code.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Open-source and distributed freely by the U.S. Geological Survey, so the code can be inspected, re-run, and reproduced without licence cost.
- Modular architecture lets optional packages (for example transport, variably saturated flow, or surface-water coupling) be activated as needed without rewriting the core solver.
- Can represent heterogeneous, multi-layer aquifer systems under both steady-state and transient conditions.
- Couples to PEST and PEST++, which allow automated parameter estimation and formal uncertainty analysis of the calibrated parameters.
- Water budgets are computed across every boundary from the simulated heads and fluxes, so inflows and outflows can be compared across alternative scenarios.
Applications
- Designing pumping schemes for municipal well fields and assessing long-term aquifer sustainability under projected demand.
- Predicting groundwater drawdown and inflow volumes for dewatering during tunnel or deep foundation construction.
- Delineating wellhead protection zones and capture zones for contaminated groundwater remediation systems.
- Evaluating the impact of surface-water withdrawal or dam operation on adjacent groundwater levels and baseflow.
- Simulating aquifer response to managed aquifer recharge (MAR) schemes and artificial infiltration basins.
- Assessing saltwater intrusion dynamics in coastal aquifers under sea-level rise or increased pumping scenarios.
How it works
How it works
The modeler begins by constructing a conceptual model of the aquifer system: identifying the lateral and vertical extent of aquifer layers, the types of geological materials present, the locations of boundaries (rivers, lakes, impermeable bedrock), and the stresses acting on the system such as pumping wells, recharge zones, and drains. This conceptualization determines which MODFLOW packages will be activated and governs all subsequent decisions.
The aquifer domain is divided into a regular or variably spaced rectangular grid of rows, columns, and layers — each cell representing a volume of aquifer material. The spatial resolution is chosen to balance computational cost against the need to capture fine-scale heterogeneity near wells or boundaries. A stress period and time-step structure is also defined to represent steady-state or transient (time-varying) conditions.
Each grid cell is assigned hydraulic parameter values: horizontal and vertical hydraulic conductivity, specific storage, specific yield (for unconfined layers), and porosity. Boundary conditions are specified — constant-head or no-flow at model edges, river stage, drain elevation, and pumping or injection rates at wells. Initial conditions (starting hydraulic heads) are set for transient simulations.
MODFLOW solves the three-dimensional, finite-difference form of the groundwater flow equation at every cell for each time step using iterative matrix solvers (e.g., PCG, IMS). In its standard form, the equation states that the sum of the derivatives of the head gradient in the x, y and z directions, each weighted by the hydraulic conductivity in that direction, plus volumetric source and sink terms such as wells and recharge, equals the specific storage multiplied by the rate of change of hydraulic head (this storage term is zero for steady-state simulations). The result is a spatially and temporally distributed field of hydraulic head values, from which water budgets — the volumetric inflows and outflows across every boundary — are computed automatically.
Simulated hydraulic heads and groundwater fluxes are compared with field-measured values. Parameters are adjusted — manually or through automated tools such as PEST or PEST++ — to minimise the residuals between observed and simulated values. Calibration is followed by sensitivity analysis to identify which parameters most influence model outputs, and by uncertainty quantification where decision stakes are high.
Calibrated model outputs are used to address management questions: drawdown at proposed wells, capture zones for wellhead protection, impact of climate-driven recharge changes, or spread of a dissolved contaminant. Scenario runs compare alternative designs or stresses. Results are visualised as head contour maps, drawdown surfaces, and water-budget tables, and are reported with explicit statements of model uncertainty.
Common pitfalls
- Over-calibration — adjusting too many parameters to match too few observations produces a model that fits historical data but performs poorly in prediction; always assess the ratio of estimated parameters to calibration targets.
- Ignoring model uncertainty — presenting simulated heads or fluxes as precise predictions without confidence intervals or sensitivity analysis overstates the reliability of the model to decision-makers.
- Coarse grid near stress features — placing wells or rivers at cell centres in a coarse grid can introduce large spatial errors in head and flux estimates near those features; local grid refinement or the Local Grid Refinement (LGR) package should be used.
- Steady-state calibration only — calibrating only to a single steady-state condition cannot constrain the storage parameters (specific storage, specific yield) that govern transient response to pumping or seasonal recharge variation.
Frequently asked questions
What is the difference between MODFLOW-2005 and MODFLOW-6?
MODFLOW-2005 is the last release of the original code line in the core MODFLOW series and remains widely used, with its packages extensively documented. Derivative branches such as MODFLOW-NWT and MODFLOW-USG also exist. MODFLOW-6 is a complete rewrite with an object-oriented structure. It supports simultaneous simulation of multiple models, such as coupled regional and local grids, includes the Groundwater Transport (GWT) model natively, and uses a new input-file format. New projects are generally encouraged to use MODFLOW-6, but MODFLOW-2005 results remain valid.
How fine does my grid need to be?
Grid resolution is a balance between accuracy and computational cost. Finer cells near features with high hydraulic gradients, such as pumping wells, rivers, or sharp geological contacts, reduce discretisation error, while coarser cells are usually acceptable away from those features. The appropriate cell size should be tested by grid-refinement comparison and sensitivity analysis rather than set by a fixed rule, and this check is good practice before relying on model outputs.
Do I need field data to use MODFLOW?
Yes. MODFLOW requires spatially distributed hydraulic parameters: at minimum horizontal and vertical hydraulic conductivity for each layer, plus storage terms (specific storage, and specific yield for unconfined layers) for transient runs, together with porosity. It also requires boundary conditions such as river stage and well pumping rates, and calibration targets such as measured water-table elevations or spring discharge records. Without adequate field data, parameter values are essentially guessed and model credibility is very low. The quantity and spatial coverage of data needed scales with model complexity and the decisions the model must support.
Can MODFLOW simulate contaminant transport?
The core MODFLOW code simulates only groundwater flow (hydraulic head and fluxes). Contaminant transport requires a coupled transport model. Options include the native GWT model introduced in MODFLOW-6, the standalone MT3D-USGS package (advection, dispersion, sorption, decay), or SEAWAT for variable-density flow and transport in coastal aquifers. The flow model is run first to produce velocity fields, which the transport model then uses to track solute concentrations through time.
Sources
Harbaugh, A. W. (2005). MODFLOW-2005, the U.S. Geological Survey modular ground-water model — the Ground-Water Flow Process. U.S. Geological Survey Techniques and Methods 6-A16.
Open publication referenceLangevin, C. D., Hughes, J. D., Banta, E. R., Niswonger, R. G., Panday, S., & Provost, A. M. (2017). Documentation for the MODFLOW 6 Groundwater Flow Model. U.S. Geological Survey Techniques and Methods 6-A55.
Open publication reference