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

# vo2Max

A quantity sample that measures the maximal oxygen consumption during exercise.

```
static let vo2Max: HKQuantityTypeIdentifier
```

## Discussion

VO2max—the maximum amount of oxygen your body can consume during exercise— is a strong predictor of overall health. Clinical tests measure VO2max by having the patient exercise on a treadmill or bike, with an intensity that increases every few minutes until exhaustion.

On Apple Watch Series 3 or later, the system automatically saves [`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) samples to HealthKit. The watch estimates the user’s VO2max based on data gathered while the user is walking or running outdoors. For more information, see [`Understand Estimated Test Results`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max#Understand-Estimated-Test-Results).

You can also create and save your own [`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) samples—for example, when creating an app that records the results of tests performed in a clinic. When creating [`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) samples, use the [`HKMetadataKeyVO2MaxTestType`](/documentation/HealthKit/HKMetadataKeyVO2MaxTestType) metadata key to specify the type of test used to generate the sample.

[`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) samples use volume/mass/time units (described in [`HKUnit`](/documentation/HealthKit/HKUnit)), measured in ml/kg /min. They measure discrete values (described in [`HKQuantityAggregationStyle`](/documentation/HealthKit/HKQuantityAggregationStyle)).

### Understand Estimated Test Results

Apple Watch Series 3 and later estimates the user’s VO2max by measuring the user’s heart rate response to exercise. The system can generate VO2max samples after an outdoor walk, outdoor run, or hiking workout. During the outdoor activity, the user must cover relatively flat ground (a grade of less than 5% incline or decline) with adequate GPS, heart rate signal quality, and sufficient exertion. The user must maintain a heart rate approximately greater than or equal to 130% of their resting heart rate. The system can estimate VO2max ranges from 14-60 ml/kg/min

The user must wear their Apple Watch for at least one day before the system can generate the first [`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) sample. Additionally, the system doesn’t generate a [`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max) sample on the user’s first workout.

Apple Watch estimates *VO2max* based on sub-maximal predictions rather than *peakVO2*. Users don’t need to achieve peak heart rate to receive an estimate; however, the system does need to estimate their peak heart rate. Users who take medications that may reduce their peak heart rate can toggle a medication switch in the Health app to enable more accurate VO2max estimates.

## Topics

### Metadata Keys

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

The method used to calculate the user’s VO2 max rate.

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