<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantityTypeIdentifier/activeEnergyBurned",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKQuantityTypeIdentifierActiveEnergyBurned"
  },
  "title" : "activeEnergyBurned"
}
-->

# activeEnergyBurned

A quantity sample type that measures the amount of active energy the user has burned.

```
static let activeEnergyBurned: HKQuantityTypeIdentifier
```

## Discussion

Active energy is the energy that the user has burned due to physical activity and exercise. These samples should not include the resting energy burned during the sample’s duration. Use the health store’s [`splitTotalEnergy(_:start:end:resultsHandler:)`](/documentation/HealthKit/HKHealthStore/splitTotalEnergy(_:start:end:resultsHandler:)) method to split a workout’s total energy burned into the active and resting portions, and then save each portion in its own sample. The system automatically records active energy samples on Apple Watch.

Active energy samples use energy units (described in [`HKUnit`](/documentation/HealthKit/HKUnit)) and measure cumulative values (described in [`HKQuantityAggregationStyle`](/documentation/HealthKit/HKQuantityAggregationStyle)). Sample data may be condensed and/or coalesced by HealthKit. For more information, see <doc://com.apple.healthkit/documentation/HealthKit/accessing-condensed-workout-samples>.

## See Also

[`HKQuantityTypeIdentifier`](/documentation/HealthKit/HKQuantityTypeIdentifier)

The identifiers that create quantity type objects.

[`HKQuantitySample`](/documentation/HealthKit/HKQuantitySample)

A sample that represents a quantity, including the value and the units.

[`HKQuantity`](/documentation/HealthKit/HKQuantity)

An object that stores a value for a given unit.



---

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)