Gauss's Law vs Ampere's Law: The Difference
Gauss's law integrates the electric field over a closed surface and equals the enclosed charge over epsilon zero. Ampere's law integrates the magnetic field around a closed loop and equals mu zero times the enclosed current. Surface against loop, charge against current, symmetry needed by both.
AP Physics: Unit 12 (topics 8.6 Gauss's Law, 12.4 Ampere's Law). Gauss's law is Topic 8.6 in AP Physics C: Electricity and Magnetism Unit 8, weighted at 15 to 25 percent of the multiple-choice section over approximately 12 to 24 class periods. Ampere's law is Topic 12.4 in Unit 12, Magnetic Fields and Electromagnetism, weighted at 10 to 20 percent over approximately 10 to 20 class periods. Essential knowledge 8.6.A.1 relates electric flux through a Gaussian surface to the enclosed charge; the Topic 8.6 boundary statement limits quantitative application to point charges and distributions with spherical, cylindrical, or planar symmetry. Essential knowledge 12.4.A.1 relates the magnitude of the magnetic field to the current enclosed by a closed imaginary path called an Amperian loop, with 12.4.A.1.i and 12.4.A.1.iii giving the long straight wire and long solenoid as derived cases; the Topic 12.4 boundary statement limits quantitative application to symmetrical magnetic fields and names long straight wires, long solenoids, and conductive slabs or cylindrical conductors carrying a current density. Essential knowledge 8.6.A.6 names Gauss's law as Maxwell's first equation and 12.4.A.4 names Ampere's law with Maxwell's addition as the fourth. Neither law appears in the AP Physics 2 CED.
The parallel, stated once
Set the two printed equations next to each other and the resemblance is immediate:
Each one closes an integral around something, counts what is inside, and multiplies by a constant of the vacuum. Each one is exactly true always and useful only under symmetry. Each one is a member of Maxwell's equations. Each one gets you a field in two lines when the geometry cooperates and nothing at all when it does not.
The resemblance is real and it is worth using, because a student who has understood Gauss's law already understands the shape of Ampere's law and only has to learn the substitutions. But the resemblance is not an identity, and three things are genuinely different:
- The object you integrate over. Gauss uses a two-dimensional closed surface. Ampere uses a one-dimensional closed loop, a curve. That is a difference in kind, not in flavour.
- What "enclosed" means. For Gauss, enclosed means inside the volume the surface bounds. For Ampere, enclosed means threading through the open surface the loop bounds, and which way it threads decides its sign.
- The constant's position. divides, multiplies. That is not cosmetic, and it comes out of how the two constants are defined.
And there is a fourth difference that reframes the whole comparison, which the next section but one is about: Ampere's law is not the magnetic counterpart of Gauss's law. It has one, it is printed on the same sheet, and it is not this.
Side by side
| Gauss's law | Ampere's law | |
|---|---|---|
| Printed form, C: E&M sheet | ||
| You integrate over | A closed surface, two dimensional | A closed loop, one dimensional |
| The integrand | Flux, field dotted with an area element | Circulation, field dotted with a length element |
| What is counted inside | Charge, in coulombs | Current, in amperes |
| Vacuum constant | , dividing | , multiplying |
| Direction convention | Outward normal on the closed surface | Right-hand rule: curl fingers along the loop, thumb gives positive current |
| Symmetries the CED uses | Spherical, cylindrical, planar | Long straight wires, long solenoids, conductive slabs, cylindrical conductors with a current density |
| Which Maxwell equation | The first | The fourth, once Maxwell's addition is included |
| Complete as printed? | Yes | No, the full fourth equation adds a changing electric flux term |
| Units of the left side | ||
| In AP Physics 2? | No | No |
The last row is worth pausing on. Neither law appears anywhere in the AP Physics 2 CED or on its equation sheet. What that course gets instead is the answer Ampere's law produces for the one case it needs: for a long straight wire, printed on the Physics 2 sheet as a finished result with no derivation attached. So a Physics 2 student uses the fruit of Ampere's law without ever meeting the law, which is exactly the design decision that makes these two laws a Physics C comparison.
The parallel that is actually correct: Gauss's law for magnetism
Pair Gauss's law with Ampere's law and you have paired an electric law with a magnetic one, which feels right and is structurally wrong. Look at what a closed surface integral of gives, because the C: E&M sheet prints that too, three lines above Ampere's law:
That is Gauss's law for magnetism, and it is the true twin. Same surface, same flux integral, same question asked of a different field. The answer is zero, and the reason is that there is no magnetic charge to enclose: field lines that enter a closed surface always leave it, because they close on themselves rather than starting and ending on sources.
So the honest map of the four is a two-by-two grid, and it is worth drawing once:
| Closed surface, flux | Closed loop, circulation | |
|---|---|---|
| Electric field | (Gauss's law) | (Faraday's law) |
| Magnetic field | (Gauss's law for magnetism) | (Ampere's law) |
All four cells are printed on the C: E&M sheet, and together they are Maxwell's equations in the form the course uses them. Gauss's law and Ampere's law sit on the diagonal of that table, which is why the analogy between them works at all and why it is incomplete. The row-mate of Gauss's law is the zero on the right of the magnetic flux equation; the column-mate of Ampere's law is Faraday's law, which is the subject of a comparison of its own.
One consequence is worth carrying into the exam. Because has no source term, the magnetic flux through any closed surface is zero no matter what is inside it: a bar magnet, a solenoid, a coil carrying any current at all. There is no magnetic analogue of "enclosed charge", so there is nothing for a magnetic Gauss's law to solve for. That is exactly why the magnetic field calculation had to be pushed onto a loop integral instead.
Where the parallel breaks down
Four places, in rising order of how much trouble they cause.
A loop bounds infinitely many surfaces, and it does not matter. When you count for an Amperian loop, you count the current through any surface bounded by that loop. For a steady current, flat disc, hemisphere and drooping bag shape all give the same enclosed current, because a steady current cannot pile up between two surfaces sharing a rim. Gauss's law has no equivalent freedom, because a closed surface bounds exactly one volume. This is the piece of Ampere's law that has no counterpart, and it is also where Maxwell's addition enters: for a circuit with a capacitor gap, a bulging surface through the gap carries no current at all, which is the defect the changing-electric-flux term repairs.
Signs work differently. On a Gaussian surface, the outward normal is fixed by the surface itself, and a negative enclosed charge simply makes the flux negative. On an Amperian loop, you choose which way to walk around the loop, and the right-hand rule then fixes which direction of current counts as positive. Two currents through the same loop in opposite directions cancel in . A loop enclosing and gives with a strong field everywhere on the path, which is worked example three.
Ampere's law as printed is incomplete. Essential knowledge 12.4.A.4 states that Maxwell's fourth equation is Ampere's law with Maxwell's addition: magnetic fields are generated by electric current, and a changing electric field also creates a magnetic field. The CED prints that full version, , and then a boundary statement says the course does not expect students to use the fourth equation with a changing electric field, though students should understand that a changing electric field generates a magnetic field. Gauss's law needs no such repair; it is complete as printed.
The symmetry menus do not match. Both laws need symmetry, but not the same list. The Topic 8.6 boundary statement gives Gauss's law point charges and spherical, cylindrical, or planar symmetry. The Topic 12.4 boundary statement limits quantitative application of Ampere's law to situations involving symmetrical magnetic fields, and names the shapes: long straight wires, long solenoids carrying currents, and conductive slabs or cylindrical conductors carrying a current density. Note what is absent from the magnetic list: nothing spherical. A uniformly charged sphere is the first thing Gauss's law does. Nothing on Ampere's list is a sphere, because a magnetic field circulates rather than radiating, so it never has one magnitude and one orientation all over a spherical surface the way a radial electric field does.
The case where the parallel is exact
There is one geometry where the two laws run in step so closely that you can write the solutions in the same handwriting: the long solid cylinder.
Take a cylinder of radius filled with uniform charge density , and a cylinder of the same radius carrying a current spread uniformly across its cross-section. Both problems have cylindrical symmetry. Both use a concentric surface or loop of radius . Both count the fraction of the source inside, which goes as in each case. And both give a field that rises linearly with inside the material and falls as outside it.
| Charged cylinder | Current-carrying cylinder | |
|---|---|---|
| Object used | Coaxial Gaussian cylinder, radius , length | Circular Amperian loop, radius |
| Left side collapses to | ||
| Source enclosed, | ||
| Field inside | ||
| Field outside | ||
| Direction | Radially outward from the axis | Circling the axis, right-hand rule |
The two rows of results have the same algebra and describe completely different pictures: one field points away from the axis, the other wraps around it. Worked examples one and two run the numbers on both with the same radii, so you can watch the identical structure produce unrelated answers.
That difference in direction is not decoration. It is why the electric field can be extracted from a surface integral (the field pierces the surface everywhere at right angles) and the magnetic field cannot (it never pierces anything; it runs along a circle, which is exactly what a loop integral is built to measure).
When it costs a mark
Putting in the wrong place. divides; multiplies. Since is small and is small, flipping either one moves the answer by more than twenty orders of magnitude, and the mistake survives the sanity check of "does this look like physics" only because nobody has an intuition for teslas.
Counting the current that runs along the loop rather than through it. A wire that lies in the plane of the Amperian loop but does not pass through the surface it bounds contributes nothing to . It still contributes to at points on the loop.
Assuming means . The exact counterpart of the dipole trap in electrostatics, and it appears on exams for the same reason. Zero circulation means the positive and negative contributions around the path cancelled, not that the field vanished.
Using a rectangular Amperian loop for a straight wire. The loop must be a path along which has constant magnitude and a fixed angle to the path. For a straight wire that path is a circle centred on the wire. A rectangle samples several field strengths and several angles, and the integral will not collapse. For a long solenoid, by contrast, the rectangle is exactly right, because the field is uniform inside and negligible outside.
Reaching for a sphere. Spherical symmetry is on Gauss's list and not on Ampere's. If a magnetic problem seems to want a spherical surface, the intended tool is the Biot-Savart law, not Ampere's law.
Which one a problem is asking for
The two laws almost never compete, because they act on different fields. The real decision on the exam is not Gauss against Ampere but, within each field, the symmetric route against the integrating route.
- Electric field, symmetric charge: Gauss's law. Electric field, no symmetry: Coulomb's law in integral form. That fork is Coulomb's law vs Gauss's law.
- Magnetic field, symmetric current: Ampere's law. Magnetic field, no symmetry: the Biot-Savart law. That fork is Ampere's law vs the Biot-Savart law.
Said together, the four laws form a rectangle: Coulomb is to Gauss as Biot-Savart is to Ampere. The integrating law in each pair works everywhere and costs you an integral; the symmetric law in each pair costs almost nothing and works on a short list of shapes. Learning that once covers both halves of the course, which is why it is worth stating as a structure rather than as four separate laws.
The pairing that people build instead, Gauss with Ampere because both use , is not wrong so much as sideways. It links the two shortcuts to each other and leaves the two workhorses unconnected.
Where these sit in the course
Gauss's law is Topic 8.6, the closing topic of Unit 8, which the CED weights at 15 to 25 percent of the multiple-choice section over roughly 12 to 24 class periods. Ampere's law is Topic 12.4, the closing topic of Unit 12, weighted at 10 to 20 percent over roughly 10 to 20 class periods.
They occupy the same position in their units, and that is not a coincidence: in each case the unit builds the field from its sources first, defines the flux or the geometry second, and only then introduces the closed integral as the payoff. Reading Unit 12 with Unit 8 fresh in mind is the cheapest way to make the magnetic half of the course feel less like a new subject.
Both units end with an essential knowledge statement placing the law inside Maxwell's equations: 8.6.A.6 for Gauss's law as the first, and 12.4.A.4 for Ampere's law with Maxwell's addition as the fourth. Neither statement is decoration on the exam, because free-response prompts do ask students to identify which law applies to a described situation, and the Maxwell framing is the CED's way of signalling that these are four coordinates of one theory rather than four tricks.
Gauss on a charged cylinder: the field inside
An infinitely long solid insulating cylinder of radius carries a uniform volume charge density . Find the electric field at from the axis, inside the material. Use .
Symmetry: the cylinder is infinite and uniform, so the field can only point radially outward and can only depend on . That licenses a coaxial Gaussian cylinder of radius and length .
The two flat end caps contribute nothing, because the field is parallel to them. The curved wall has perpendicular to it with constant magnitude, so .
The enclosed charge is the volume inside the Gaussian cylinder times the density: . Note that only the charge within radius counts, not the whole cylinder.
Gauss's law: . The and one power of cancel, leaving .
Numerically: , and .
, directed radially outward.
Check the shape: grows linearly with inside the material, and at it is zero, which is right because there is no enclosed charge at the axis.
, pointing radially away from the axis. The field rises linearly with distance from the axis while you are still inside the charge.
Ampere on a current-carrying cylinder: the same algebra, a different picture
A long solid cylindrical conductor of radius carries a total current distributed uniformly over its cross-section. Find the magnitude of the magnetic field at from the axis. Use .
Symmetry: the current distribution is unchanged by rotating about the axis or sliding along it, so has the same magnitude at every point of a circle centred on the axis and runs along that circle. Choose that circle as the Amperian loop.
Because is parallel to everywhere on the loop and constant in magnitude, .
The enclosed current is the fraction of the cross-section inside radius : .
Ampere's law: , so , linear in , exactly as the electric case was.
Numerically, use to keep the arithmetic clean: .
.
.
Direction: point the right thumb along the current and the fingers curl the way circles the wire. Unlike the electric case, the field never points away from the axis at all.
, circling the axis. Same enclosed-fraction argument as the charged cylinder, same linear rise with , and a field that wraps instead of radiating.
Zero circulation with a large field: two antiparallel wires
Two long parallel wires are apart. Each carries , in opposite directions. An Amperian loop encircles both wires. (a) Find around that loop. (b) Find the magnitude of at the midpoint between the wires. (c) Say what the pair of answers means.
(a) Walk around the loop in some chosen sense and apply the right-hand rule: one wire's current counts as and the other, running the opposite way, counts as .
, so exactly, for every loop that encircles both wires.
(b) Now the field at the midpoint, from the long-wire result. Each wire is away, so each contributes .
Directions: for currents running opposite ways, the two circulating fields point the same way at the midpoint between them, so the contributions add rather than cancel.
.
(c) The circulation around the loop is zero while the field at a point inside it is twice what one wire alone would give. Ampere's law was applied correctly and told you nothing about , because no loop here has a constant along it.
around any loop enclosing both wires, while at the midpoint. Zero circulation is not zero field, exactly as zero flux is not zero field on the electric side.
Frequently asked questions
What is the difference between Gauss's law and Ampere's law?
Gauss's law integrates the electric field over a closed surface and sets the result equal to the enclosed charge divided by epsilon zero. Ampere's law integrates the magnetic field around a closed loop and sets the result equal to mu zero times the current enclosed by that loop. So one uses a two-dimensional closed surface and counts charge inside a volume, the other uses a one-dimensional closed curve and counts current threading the area it bounds. Both are exactly true in general and both only yield a field when the symmetry lets you pull the field out of the integral.
Is Ampere's law the magnetic version of Gauss's law?
No. The magnetic version of Gauss's law is the closed surface integral of B dot dA equals zero, which is printed on the AP Physics C: Electricity and Magnetism equation sheet a few lines above Ampere's law. It says the magnetic flux through any closed surface is zero, because there is no magnetic charge to enclose. Ampere's law is the magnetic counterpart of Faraday's law in structure, since both are loop integrals of a field. Gauss's law and Ampere's law resemble each other only in that both close an integral and count an enclosed source.
Why does Gauss's law divide by epsilon zero while Ampere's law multiplies by mu zero?
It follows from how the two constants are defined. Epsilon zero, the vacuum permittivity, appears in the denominator of Coulomb's law through k equals one over four pi epsilon zero, so a larger permittivity means a weaker electric field for the same charge. Mu zero, the vacuum permeability, appears in the numerator of the Biot-Savart law, so a larger permeability means a stronger magnetic field for the same current. The AP sheet prints epsilon zero as 8.85 times ten to the minus twelve and mu zero as four pi times ten to the minus seven.
Does an Amperian loop have to be a circle?
No, but it has to be a path on which the calculation actually simplifies. For a long straight wire or a cylindrical conductor the right choice is a circle centred on the axis, because the field magnitude is constant along it and points along the path. For a long solenoid the right choice is a rectangle with one side inside the coil and one side outside, because the field is uniform inside and negligible outside, so only one side of the rectangle contributes. Any closed path is legal; only some make the integral collapse.
Are Gauss's law and Ampere's law on the AP Physics 2 equation sheet?
Neither one is. The AP Physics 2 CED contains no Gauss's law, no Ampere's law, no electric flux and no Gaussian surfaces. What the Physics 2 sheet prints instead is the finished result B equals mu zero I over two pi r for the field of a long straight wire, which is what Ampere's law produces for that case. Both closed-integral laws are AP Physics C: Electricity and Magnetism content, appearing as Topic 8.6 and Topic 12.4 respectively.
What does it mean when the circulation of B around a loop is zero?
It means the net current threading the loop is zero, with currents counted positive or negative according to the right-hand rule applied to the direction you traverse the loop. It does not mean the magnetic field is zero anywhere. Two parallel wires carrying equal and opposite currents give zero circulation around any loop enclosing both, while the field between them is twice what a single wire would produce. This mirrors the electrostatic case where a Gaussian surface around a dipole has zero net flux and a large field on it.
Which Maxwell's equations are Gauss's law and Ampere's law?
The AP Physics C: Electricity and Magnetism CED names both. Essential knowledge 8.6.A.6 states that Gauss's law is Maxwell's first equation. Essential knowledge 12.4.A.4 states that Maxwell's fourth equation is Ampere's law with Maxwell's addition, which adds that a changing electric field creates a magnetic field alongside the contribution from current. A boundary statement on that topic says the course does not expect students to use the fourth equation with a changing electric field, only to understand that a changing electric field generates a magnetic field.