---
title: UnitElectricCharge
framework: foundation
role: symbol
role_heading: Class
path: foundation/unitelectriccharge
---

# UnitElectricCharge

A unit of measure for electric charge.

## Declaration

```swift
class UnitElectricCharge
```

## Overview

Overview You typically use instances of UnitElectricCharge to represent specific quantities of electric charge using the NSMeasurement class. Electric Charge Electric charge is a fundamental physical property of matter that causes it to experience a force within an electromagnetic field. The SI unit for electric charge is the coulomb (C), which is defined as the amount of charge carried by a current of one ampere in one second (1C = 1A · 1s). Charge is also commonly expressed in terms of ampere hours (Ah). The UnitElectricCharge class defines its baseUnit() as coulombs, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients:  |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |

## Topics

### Accessing the Base Unit

- [baseUnit()](foundation/dimension/baseunit().md)

### Accessing Predefined Units

- [coulombs](foundation/unitelectriccharge/coulombs.md)
- [megaampereHours](foundation/unitelectriccharge/megaamperehours.md)
- [kiloampereHours](foundation/unitelectriccharge/kiloamperehours.md)
- [ampereHours](foundation/unitelectriccharge/amperehours.md)
- [milliampereHours](foundation/unitelectriccharge/milliamperehours.md)
- [microampereHours](foundation/unitelectriccharge/microamperehours.md)

## Relationships

### Inherits From

- [Dimension](foundation/dimension.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Electricity

- [UnitElectricCurrent](foundation/unitelectriccurrent.md)
- [UnitElectricPotentialDifference](foundation/unitelectricpotentialdifference.md)
- [UnitElectricResistance](foundation/unitelectricresistance.md)
