<!--
{
  "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/HKMetadataKeyVO2MaxTestType",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyVO2MaxTestType"
  },
  "title" : "HKMetadataKeyVO2MaxTestType"
}
-->

# HKMetadataKeyVO2MaxTestType

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

```
let HKMetadataKeyVO2MaxTestType: String
```

## Discussion

This key takes an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a [`HKVO2MaxTestType`](/documentation/HealthKit/HKVO2MaxTestType) value.

## Topics

### Valid Test Types

[`enum HKVO2MaxTestType`](/documentation/HealthKit/HKVO2MaxTestType)

Methods for calculating the user’s VO2 max rate.



---

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)