Electric Charge Converter
Convert electric charge units between coulombs, milliampere-hours, microcoulombs, and more.
All Conversions
About this tool
Electric charge is a fundamental property of matter that determines how particles interact through electromagnetic forces. The coulomb (C) is the SI unit of charge, but in practical applications—from batteries and capacitors to electrochemistry and energy storage—engineers and scientists often work with other units like ampere-hours (Ah), milliampere-hours (mAh), microcoulombs (μC), and nanocoulombs (nC). Converting between these units accurately is essential for designing circuits, calculating battery capacity, and understanding device specifications.
This converter lets you enter a charge value in any supported unit and instantly see its equivalent in all other units. Simply select or enter your starting unit and value, and the tool performs the conversion automatically—no manual calculation needed. It's useful for comparing battery capacities across different products, verifying electrical engineering calculations, or translating manufacturer specifications from one notation to another.
The tool handles both SI and practical units with full precision, making it equally valuable for academic study, professional engineering work, and everyday troubleshooting. Whether you're designing a circuit, evaluating a power bank specification, or checking homework, this converter eliminates the risk of unit-conversion errors that can derail projects or lead to safety issues.
Frequently Asked Questions
Code Implementation
# Electric Charge Unit Converter
# Base unit: Coulomb (C)
CHARGE_TO_COULOMB = {
"C": 1,
"mC": 1e-3,
"µC": 1e-6,
"nC": 1e-9,
"pC": 1e-12,
"kC": 1e3,
"MC": 1e6,
"Ah": 3600,
"mAh": 3.6,
"e": 1.602176634e-19, # Elementary charge
}
def convert_charge(value: float, from_unit: str, to_unit: str) -> float:
"""Convert electric charge between units."""
if from_unit not in CHARGE_TO_COULOMB:
raise ValueError(f"Unknown unit: {from_unit}")
if to_unit not in CHARGE_TO_COULOMB:
raise ValueError(f"Unknown unit: {to_unit}")
coulombs = value * CHARGE_TO_COULOMB[from_unit]
return coulombs / CHARGE_TO_COULOMB[to_unit]
# Examples
print(f"1 C = {convert_charge(1, 'C', 'µC'):.2e} µC")
print(f"1 Ah = {convert_charge(1, 'Ah', 'C'):.0f} C")
print(f"1 mAh = {convert_charge(1, 'mAh', 'C'):.1f} C")
print(f"1 µC = {convert_charge(1, 'µC', 'pC'):.0f} pC")
print(f"1 elementary charge = {1.602176634e-19:.3e} C")Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.