<!--
{
  "availability" : [
    "iOS: 8.0.0 - 18.0.0",
    "iPadOS: 8.0.0 - 18.0.0",
    "macCatalyst: 13.0.0 - 18.0.0",
    "macOS: 13.0.0 - 15.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 2.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkout/totalEnergyBurned",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKWorkout(py)totalEnergyBurned"
  },
  "title" : "totalEnergyBurned"
}
-->

# totalEnergyBurned

The total active energy burned during the workout.

```
var totalEnergyBurned: HKQuantity? { get }
```

## Discussion

This property contains a quantity using energy units, or `nil`.

> Note:
> Provide a total energy burned value whenever the active calories burned is relevant to the workout type. In addition, add active energy burned samples to a workout using the ``doc://com.apple.healthkit/documentation/HealthKit/HKHealthStore/add(_:to:completion:)`` method. These samples should sum up to the total energy, while providing detailed information about how the intensity changes over the duration of the workout.

## See Also

[`-  splitTotalEnergy:startDate:endDate:resultsHandler:`](/documentation/HealthKit/HKHealthStore/splitTotalEnergy(_:start:end:resultsHandler:))

Calculates the active and resting energy burned based on the total energy burned over the given duration.



---

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)