---
title: sumQuantity
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkcumulativequantitysample/sumquantity
---

# sumQuantity

The sum of all the quantities contained by the sample.

## Declaration

```swift
@NSCopying var sumQuantity: HKQuantity { get }
```
