<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/EnergyFormatter/Unit",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSEnergyFormatterUnit"
  },
  "title" : "EnergyFormatter.Unit"
}
-->

# EnergyFormatter.Unit

The units supported by the `NSEnergyFormatter` class.

```
enum Unit
```

## Topics

### Constants

[`NSEnergyFormatterUnitJoule`](/documentation/Foundation/EnergyFormatter/Unit/joule)

The joule unit.

[`NSEnergyFormatterUnitKilojoule`](/documentation/Foundation/EnergyFormatter/Unit/kilojoule)

The kilojoule unit.

[`NSEnergyFormatterUnitCalorie`](/documentation/Foundation/EnergyFormatter/Unit/calorie)

The calorie unit. This unit is often used in chemistry. It is abbreviated as “cal.”

[`NSEnergyFormatterUnitKilocalorie`](/documentation/Foundation/EnergyFormatter/Unit/kilocalorie)

The kilocalorie unit. This unit is used for food calories in some locales. In general, it is abbreviated as “kcal.” However, it may be abbreviated as “C” when used to represent food calories.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)