{
  "id": "gauss-law",
  "title": "Gauss’s Law",
  "lang": "en",
  "source_lang": "en",
  "summary": "Gauss’s law relates the electric flux through a closed surface to the net electric charge enclosed by that surface.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Gauss’s law for electricity",
    "Gauss’s electric law"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/gauss-law/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/gauss-law/",
      "json": "https://aiwiki.page/zh/gauss-law.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Gauss’s law is a fundamental law of electromagnetism stating that the net outward electric flux through any closed surface equals the net electric charge enclosed divided by the vacuum permittivity. It is one of Maxwell’s equations and applies to both static and time-dependent electric fields. Its significance is broader than its familiar use in calculating fields around symmetric charge distributions: it specifies how electric charge acts as a source or sink of the electric field. (openstax.org)"
    },
    {
      "heading": "Integral form and electric flux",
      "text": "In the International System of Units (SI), Gauss’s law is written\n\n\\[\\boxed{\\oint_S \\mathbf E\\cdot d\\mathbf A =\\frac{Q_{\\mathrm{enc}}}{\\varepsilon_0}}.\\]\n\nHere:\n\n- \\(S\\) is a closed surface enclosing a volume \\(V\\).\n- \\(\\mathbf E\\) is the total electric field at each point on the surface.\n- \\(d\\mathbf A=\\hat{\\mathbf n}\\,dA\\) is the area element directed along the outward unit normal.\n- \\(Q_{\\mathrm{enc}}\\) is the algebraic sum of all enclosed charges.\n- \\(\\varepsilon_0\\) is the vacuum permittivity.\n\nThe left-hand side is the electric flux, denoted \\(\\Phi_E\\). It is a surface integral, not simply the field strength multiplied by the total area. Only the component of the field normal to the surface contributes. Outward contributions are positive; inward contributions are negative. For a continuous volume charge distribution,\n\n\\[Q_{\\mathrm{enc}}=\\int_V\\rho\\,dV,\\]\n\nwhere \\(\\rho\\) is charge per unit volume. (openstax.org)\n\nThe imaginary closed surface used in applying the law is called a Gaussian surface. It need not coincide with a physical object. Different surfaces enclosing the same net charge have the same net electric flux, although the field strengths and their distributions over those surfaces may differ. (openstax.org)"
    },
    {
      "heading": "Physical interpretation",
      "text": "Gauss’s law distinguishes net flux from the field itself. An external charge can produce a substantial electric field everywhere on a Gaussian surface while contributing zero net flux through it: its inward and outward contributions cancel. Likewise, a surface enclosing equal positive and negative charges has zero net flux even though its electric field generally does not vanish. (feynmanlectures.caltech.edu)\n\nElectric field lines provide a visualization of this relationship. Positive charges are sources of field lines and negative charges are sinks. In a charge-free region, field lines do not begin or end, so any lines entering a closed surface must also leave it. Field-line drawings are representations of the field, however, rather than physical strands whose number is intrinsically fixed. (openstax.org)"
    },
    {
      "heading": "Differential form",
      "text": "The local form of Gauss’s law is\n\n\\[\\boxed{\\nabla\\cdot\\mathbf E=\\frac{\\rho}{\\varepsilon_0}}.\\]\n\nThe operator \\(\\nabla\\cdot\\) is the divergence of a vector field. It measures the net outward flux per unit volume in the limit of a small volume surrounding a point. Thus, the differential equation relates the local source strength of the electric field to the local charge density. (feynmanlectures.caltech.edu)\n\nThe equivalence of the integral and differential forms follows from the divergence theorem:\n\n\\[\\oint_{\\partial V}\\mathbf E\\cdot d\\mathbf A =\\int_V\\nabla\\cdot\\mathbf E\\,dV.\\]\n\nSubstituting the differential law gives the integral law. Conversely, if the integral law holds for every suitable volume and the fields are sufficiently regular, the local equation follows. The divergence theorem is a mathematical identity for vector fields; Gauss’s law is a physical statement identifying electric charge as the source of a particular field. (feynmanlectures.caltech.edu)"
    },
    {
      "heading": "Relationship to Coulomb’s law",
      "text": "In electrostatics, Gauss’s law follows from Coulomb’s law and the superposition principle. For an isolated point charge \\(q\\), Coulomb’s law gives\n\n\\[\\mathbf E=\\frac{q}{4\\pi\\varepsilon_0r^2}\\hat{\\mathbf r}.\\]\n\nOn a concentric sphere of radius \\(r\\), the field is normal to the surface and constant in magnitude. Consequently,\n\n\\[\\oint_S\\mathbf E\\cdot d\\mathbf A =\\frac{q}{4\\pi\\varepsilon_0r^2}(4\\pi r^2) =\\frac{q}{\\varepsilon_0}.\\]\n\nThe inverse-square decrease in field strength exactly compensates for the increase in spherical area. The result extends to arbitrary enclosing surfaces and, through superposition, to arbitrary electrostatic charge distributions. (feynmanlectures.caltech.edu)\n\nConversely, Gauss’s law recovers the point-charge field when spherical symmetry is imposed. It does not, by itself, determine every electrostatic field: the field must also have zero curl and satisfy the relevant boundary conditions. (feynmanlectures.caltech.edu)"
    },
    {
      "heading": "Calculating fields with symmetry",
      "text": "Gauss’s law holds whether or not a charge distribution is symmetric. Its use as a direct calculation method becomes especially simple when symmetry fixes the field’s direction and makes its magnitude constant on relevant portions of a Gaussian surface. The principal examples are spherical, cylindrical, and planar symmetry. (openstax.org)\n\nSpherical symmetry\n\nFor a spherically symmetric distribution,\n\n\\[\\mathbf E(r)= \\frac{Q_{\\mathrm{enc}}(r)}{4\\pi\\varepsilon_0r^2}\\hat{\\mathbf r}.\\]\n\nOutside a finite spherical distribution, \\(Q_{\\mathrm{enc}}(r)\\) is the total charge, so the field is the same as that of a point charge at its center. Inside a uniformly charged solid sphere of radius \\(R\\) and total charge \\(Q\\),\n\n\\[Q_{\\mathrm{enc}}(r)=Q\\frac{r^3}{R^3}, \\qquad \\mathbf E(r)=\\frac{Qr}{4\\pi\\varepsilon_0R^3}\\hat{\\mathbf r}.\\]\n\nThus, the interior field increases linearly with distance from the center. Inside a uniformly charged spherical shell, the field vanishes. These results require symmetry; zero enclosed charge alone is insufficient to establish a zero field. (openstax.org)\n\nCylindrical symmetry\n\nFor an infinitely long straight line with uniform charge per unit length \\(\\lambda\\), a coaxial cylindrical surface gives\n\n\\[E(2\\pi rL)=\\frac{\\lambda L}{\\varepsilon_0},\\]\n\nand therefore\n\n\\[\\mathbf E(r)=\\frac{\\lambda}{2\\pi\\varepsilon_0r}\\hat{\\mathbf r}.\\]\n\nThe flux through the end caps is zero because the field is tangent to them. The field decreases as \\(1/r\\), rather than \\(1/r^2\\). (feynmanlectures.caltech.edu)\n\nPlanar symmetry\n\nFor an isolated infinite plane carrying uniform surface charge density \\(\\sigma\\), a pillbox-shaped Gaussian surface straddling the plane gives\n\n\\[2EA=\\frac{\\sigma A}{\\varepsilon_0}, \\qquad E=\\frac{|\\sigma|}{2\\varepsilon_0}.\\]\n\nThe field points away from a positive sheet and toward a negative sheet. Its magnitude is independent of distance. For finite sheets or wires, the infinite-system formulas are approximations whose usefulness depends on the observation point being sufficiently far from edges or ends. (feynmanlectures.caltech.edu)"
    },
    {
      "heading": "Conductors and boundary conditions",
      "text": "Within the material of an electrical conductor in electrostatic equilibrium, the macroscopic electric field is zero. Gauss’s law then implies that the net bulk charge density vanishes: excess charge resides on the conductor’s surfaces, including cavity surfaces when appropriate. This does not mean that the material contains no charged particles, only that its bulk positive and negative charge densities balance. (openstax.org)\n\nA thin pillbox crossing a smooth charged interface gives the boundary condition\n\n\\[\\hat{\\mathbf n}\\cdot(\\mathbf E_2-\\mathbf E_1) =\\frac{\\sigma}{\\varepsilon_0},\\]\n\nwhere \\(\\hat{\\mathbf n}\\) points from side 1 to side 2 and \\(\\sigma\\) is the total surface charge density. At a conductor’s surface facing vacuum, the interior field is zero and the exterior field has no tangential component, giving\n\n\\[\\mathbf E_{\\mathrm{outside}} =\\frac{\\sigma}{\\varepsilon_0}\\hat{\\mathbf n}.\\]\n\nThis is a local result and does not require a spherical conductor. Its factor differs from that for an isolated infinite charged sheet because the field on the conductor’s interior side vanishes. (openstax.org)"
    },
    {
      "heading": "Gauss’s law in matter",
      "text": "The electric-field form of the law includes all charge, both free and bound. In a dielectric, bound charge arises from electric polarization. Introducing the electric displacement field\n\n\\[\\mathbf D=\\varepsilon_0\\mathbf E+\\mathbf P,\\]\n\nwhere \\(\\mathbf P\\) is electric dipole moment per unit volume, allows the law to be expressed as\n\n\\[\\boxed{\\nabla\\cdot\\mathbf D=\\rho_{\\mathrm{free}}}, \\qquad \\boxed{\\oint_S\\mathbf D\\cdot d\\mathbf A =Q_{\\mathrm{free,enc}}}.\\]\n\nThis separates explicitly specified free charge from the material’s polarization response. (feynmanlectures.caltech.edu)\n\nFor a linear isotropic dielectric, \\(\\mathbf D=\\varepsilon\\mathbf E\\). If \\(\\varepsilon\\) is spatially uniform, it can be taken outside the flux integral. If it varies with position, the appropriate equation is\n\n\\[\\nabla\\cdot(\\varepsilon\\mathbf E)=\\rho_{\\mathrm{free}},\\]\n\nnot generally \\(\\varepsilon\\nabla\\cdot\\mathbf E=\\rho_{\\mathrm{free}}\\). Replacing \\(\\varepsilon_0\\) with a material permittivity while continuing to count all charge mixes the two formulations. (feynmanlectures.caltech.edu)"
    },
    {
      "heading": "Role in Maxwell’s theory and limits of inference",
      "text": "Gauss’s law remains valid for changing fields; it is not restricted to electrostatics. In Maxwell’s theory, it constrains the electric field’s divergence, while Faraday’s law of induction specifies its curl in relation to a changing magnetic field. A charge-free region can therefore contain a nonzero, time-dependent electric field with zero divergence. (feynmanlectures.caltech.edu)\n\nIn electrostatics, writing the field in terms of electric potential,\n\n\\[\\mathbf E=-\\nabla\\phi,\\]\n\nturns Gauss’s law into Poisson’s equation:\n\n\\[\\nabla^2\\phi=-\\frac{\\rho}{\\varepsilon_0}.\\]\n\nTogether with appropriate boundary conditions, this provides a way to determine fields even when simple Gaussian-surface calculations are unavailable. A spherical Gaussian surface does not make an asymmetric field spherical, and knowing the total enclosed charge does not determine how flux is distributed across individual portions of the surface. (feynmanlectures.caltech.edu)"
    }
  ],
  "links": [
    "electromagnetism",
    "electric-charge",
    "maxwells-equations",
    "electric-field",
    "international-system-of-units",
    "permittivity",
    "electric-flux",
    "integral",
    "gaussian-surface",
    "vector-field",
    "divergence-theorem",
    "electrostatics",
    "coulombs-law",
    "superposition-principle",
    "electrical-conductor",
    "dielectric",
    "faraday-law-of-induction",
    "magnetic-field",
    "electric-potential",
    "poisson-equation"
  ],
  "sources": [
    {
      "title": "2 Explaining Gauss’s Law - University Physics Volume 2 | OpenStax",
      "url": "https://openstax.org/books/university-physics-volume-2/pages/6-2-explaining-gausss-law"
    },
    {
      "title": "Ch. 6 Summary - University Physics Volume 2 | OpenStax",
      "url": "https://openstax.org/books/university-physics-volume-2/pages/6-summary"
    },
    {
      "title": "4 Conductors in Electrostatic Equilibrium - University Physics Volume 2 | OpenStax",
      "url": "https://openstax.org/books/university-physics-volume-2/pages/6-4-conductors-in-electrostatic-equilibrium"
    },
    {
      "title": "Applying Gauss’s Law - University Physics Volume 2 | OpenStax",
      "url": "https://www.theexpertta.com/book-files/OpenStaxUniversityPhysicsVol2/UP2_6.3.%20Applying%20Gauss%E2%80%99s%20Law_pg261-265.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}