Skip to main content

Coulomb’s Law Calculator

Calculate the electrostatic force between two point charges, the distance between them or an unknown charge, with the type of interaction and every step.

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Fill in three quantities and leave the one to calculate empty. Enter each charge with its sign. The force is signed: positive for repulsion, negative for attraction.

Model: two stationary point charges in a vacuum, with k = 1/(4πε₀) ≈ 8.98755 × 10⁹ N·m²/C² (CODATA 2022 value of ε₀). In another medium, the force is divided by its relative permittivity; the tool does not apply it.

Results

Signed force F
-
Magnitude |F|
-
Interaction
-
Charge q₁
-
Charge q₂
-
Distance r
-

Calculation steps

    Was this tool useful?

    On this page

    How does this tool work?

    Two charged objects attract or repel each other without touching. Coulomb’s law gives this force for two point charges: it is proportional to the product of the charges and inversely proportional to the square of the distance between them. The calculator finds the force, but also the distance or one of the charges when the other three quantities are known, and tells you whether the charges attract or repel.

    The tool applies F = k·q₁·q₂ / r² to values converted into SI units: coulombs, metres and newtons. The constant k equals 1/(4πε₀), about 8.98755 × 10⁹ N·m²/C². It is derived from the vacuum permittivity ε₀ = 8.8541878188 × 10⁻¹² F/m recommended by CODATA 2022.

    Charges keep their sign. The product q₁·q₂ is positive for two charges of the same sign: the signed force is positive and the charges repel. It is negative for charges of opposite signs: the force is negative and the charges attract. The magnitude |F| = k·|q₁·q₂| / r² is the absolute value of this result — the number you compare with a weight or another force.

    For an inverse calculation, enter the force with that sign. It gives the sign of an unknown charge: a repulsion with a positive q₁ means a positive q₂. To find the distance, the sign of the force must match the product of the charges; otherwise no distance works and the tool says so. A zero or negative distance, a non-numeric value or a result outside the representable range is rejected.

    Very small and very large values are shown in scientific notation, such as 8.23872 × 10⁻⁸ N. A force between particles or a charge of a few picocoulombs would be unreadable in plain decimal form.

    How to use this tool

    1. Choose the unknown

      Clear the field for the force, a charge or the distance you are looking for. Zero is a known value, not an unknown.

    2. Enter signed values

      Give each charge with its sign and unit (C, mC, µC, nC or pC), then the distance between the centres of the charges.

    3. Read the result and the steps

      Check the signed force, its magnitude, the type of interaction and the full substitution in SI units.

    Coulomb’s law and inverse calculations

    Signed force

    F = k × q₁ × q₂ / r²

    Positive for repulsion, negative for attraction.

    Magnitude of the force

    |F| = k × |q₁ × q₂| / r²

    Absolute value of the force, always positive or zero.

    Find the distance

    r = √(k × q₁ × q₂ / F)

    Only possible when F and q₁·q₂ have the same sign and are nonzero.

    Find a charge

    q₂ = F × r² / (k × q₁)

    The other charge must be nonzero; the sign of F gives the sign of the unknown charge.

    Coulomb constant

    k = 1 / (4π × ε₀)

    ε₀ = 8.8541878188 × 10⁻¹² F/m, vacuum permittivity (CODATA 2022).

    F
    Signed electrostatic force exerted by one charge on the other, in newtons (N).
    q₁, q₂
    Signed electric charges, in coulombs (C).
    r
    Distance between the two charges, in metres (m), strictly positive.
    k
    Coulomb constant, in N·m²/C².
    ε₀
    Vacuum permittivity, in farads per metre (F/m).

    Use cases

    Check an electrostatics exercise

    Verify the force, its direction and the unit conversions of a physics problem, step by step.

    Plan an experiment

    Estimate the distance at which two charged spheres exert a force you can measure with a pendulum or a balance.

    Compare orders of magnitude

    Compare the force between charged particles with their weight to see why electricity dominates at the atomic scale.

    Examples

    Two charges of opposite signs

    The values become 2 × 10⁻⁶ C, −3 × 10⁻⁶ C and 0.05 m. The product of the charges is negative, so the force is attractive, with a magnitude of 8.98755 × 10⁹ × 6 × 10⁻¹² / 0.0025 ≈ 21.57 N.

    Input

    Force: empty field
    q₁: 2 µC
    q₂: −3 µC
    Distance: 5 cm

    Result

    Signed force: −21.570124 N
    Magnitude: 21.570124 N
    Interaction: attraction

    Distance for a given force

    Two positive charges repel, so the force entered is positive. The distance is √(k × 2.5 × 10⁻¹⁵ / 0.01) ≈ 0.0474 m.

    Input

    Force: 0.01 N
    q₁: 50 nC
    q₂: 50 nC
    Distance: empty field, unit cm

    Result

    Distance: 4.740135 cm
    Interaction: repulsion

    Unknown charge from an attraction

    The negative force means attraction: with a positive q₁, q₂ is negative. Its magnitude is 0.5 × 0.1² / (k × 10⁻⁶) ≈ 5.563 × 10⁻⁷ C.

    Input

    Force: −0.5 N
    q₁: 1 µC
    q₂: empty field, unit µC
    Distance: 10 cm

    Result

    Charge q₂: −0.55632503 µC

    Proton and electron in a hydrogen atom

    At the Bohr radius, the attraction is about 8.24 × 10⁻⁸ N — more than 10³⁹ times the gravitational attraction between the two particles.

    Input

    Force: empty field
    q₁: 1.602176634e-19 C
    q₂: -1.602176634e-19 C
    Distance: 5.29177210544e-11 m

    Result

    Signed force: −8.23872 × 10⁻⁸ N

    Tips and best practices

    • Doubling the distance divides the force by four; halving it multiplies the force by four. This ratio is a quick way to check an order of magnitude.
    • For very small charges, pick nC or pC, or type the value in scientific notation, for example 1.602176634e-19 C for the elementary charge.
    • In water or an insulator, the actual force is weaker: divide the result by the relative permittivity of the medium, about 80 for water at 20 °C.
    • A zero charge gives a zero force at any distance, so it cannot be used to work out that distance.

    Sources and references

    Frequently asked questions

    Why is the force shown as negative?

    The calculator keeps the sign of the product q₁·q₂. A negative force signals attraction between charges of opposite signs; its magnitude, always positive, is shown next to it.

    Which value of Coulomb’s constant is used?

    k = 1/(4πε₀) ≈ 8.9875517862 × 10⁹ N·m²/C², with the CODATA 2022 vacuum permittivity. The rounded 9 × 10⁹ used in textbook exercises overestimates the force by about 0.14%.

    Does the law apply to charged spheres?

    Yes for uniformly charged spheres, provided you measure the distance between their centres and stay outside the spheres. For conductors close to each other, the charges redistribute and the result becomes an approximation.

    Why is a zero distance rejected?

    The force would become infinite: the point-charge model no longer makes sense when the charges touch. The shape and size of the objects must then be taken into account.

    How do I handle three or more charges?

    Calculate the force each charge exerts on the charge you are studying, then add these forces as vectors, taking their directions into account. This is the superposition principle; the tool handles one pair at a time.

    Related tools

    Tools similar or complementary to this one.

    Works well with