---
title: totalEnergyBurned
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkout/totalenergyburned
---

# totalEnergyBurned

The total active energy burned during the workout.

## Declaration

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

## Mentioned in

Adding samples to a workout

## Discussion

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 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

### Related Documentation

- [splitTotalEnergy(_:start:end:resultsHandler:)](healthkit/hkhealthstore/splittotalenergy(_:start:end:resultshandler:).md)

### Accessing workout data

- [duration](healthkit/hkworkout/duration.md)
- [workoutActivityType](healthkit/hkworkout/workoutactivitytype.md)
- [workoutActivities](healthkit/hkworkout/workoutactivities.md)
- [workoutEvents](healthkit/hkworkout/workoutevents.md)
- [statistics(for:)](healthkit/hkworkout/statistics(for:).md)
- [allStatistics](healthkit/hkworkout/allstatistics.md)
- [totalDistance](healthkit/hkworkout/totaldistance.md)
- [totalFlightsClimbed](healthkit/hkworkout/totalflightsclimbed.md)
- [totalSwimmingStrokeCount](healthkit/hkworkout/totalswimmingstrokecount.md)
