<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantityTypeIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@T@HKQuantityTypeIdentifier"
  },
  "title" : "HKQuantityTypeIdentifier"
}
-->

# HKQuantityTypeIdentifier

The identifiers that create quantity type objects.

```
struct HKQuantityTypeIdentifier
```

## Overview

To create an [`HKQuantityType`](/documentation/HealthKit/HKQuantityType) instance, pass an [`HKQuantityTypeIdentifier`](/documentation/HealthKit/HKQuantityTypeIdentifier) value to the [`quantityType(forIdentifier:)`](/documentation/HealthKit/HKObjectType/quantityType(forIdentifier:)) method.

## Topics

### Activity

[`stepCount`](/documentation/HealthKit/HKQuantityTypeIdentifier/stepCount)

A quantity sample type that measures the number of steps the user has taken.

[`distanceWalkingRunning`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceWalkingRunning)

A quantity sample type that measures the distance the user has moved by walking or running.

[`runningGroundContactTime`](/documentation/HealthKit/HKQuantityTypeIdentifier/runningGroundContactTime)

A quantity sample type that measures the amount of time the runner’s foot is in contact with the ground while running.

[`runningPower`](/documentation/HealthKit/HKQuantityTypeIdentifier/runningPower)

A quantity sample type that measures the rate of work required for the runner to maintain their speed.

[`runningSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/runningSpeed)

A quantity sample type that measures the runner’s speed.

[`runningStrideLength`](/documentation/HealthKit/HKQuantityTypeIdentifier/runningStrideLength)

A quantity sample type that measures the distance covered by a single step while running.

[`runningVerticalOscillation`](/documentation/HealthKit/HKQuantityTypeIdentifier/runningVerticalOscillation)

A quantity sample type measuring pelvis vertical range of motion during a single running stride.

[`distanceCycling`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceCycling)

A quantity sample type that measures the distance the user has moved by cycling.

[`pushCount`](/documentation/HealthKit/HKQuantityTypeIdentifier/pushCount)

A quantity sample type that measures the number of pushes that the user has performed while using a wheelchair.

[`distanceWheelchair`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceWheelchair)

A quantity sample type that measures the distance the user has moved using a wheelchair.

[`swimmingStrokeCount`](/documentation/HealthKit/HKQuantityTypeIdentifier/swimmingStrokeCount)

A quantity sample type that measures the number of strokes performed while swimming.

[`distanceSwimming`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceSwimming)

A quantity sample type that measures the distance the user has moved while swimming.

[`distanceDownhillSnowSports`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceDownhillSnowSports)

A quantity sample type that measures the distance the user has traveled while skiing or snowboarding.

[`basalEnergyBurned`](/documentation/HealthKit/HKQuantityTypeIdentifier/basalEnergyBurned)

A quantity sample type that measures the resting energy burned by the user.

[`activeEnergyBurned`](/documentation/HealthKit/HKQuantityTypeIdentifier/activeEnergyBurned)

A quantity sample type that measures the amount of active energy the user has burned.

[`flightsClimbed`](/documentation/HealthKit/HKQuantityTypeIdentifier/flightsClimbed)

A quantity sample type that measures the number flights of stairs that the user has climbed.

[`nikeFuel`](/documentation/HealthKit/HKQuantityTypeIdentifier/nikeFuel)

A quantity sample type that measures the number of NikeFuel points the user has earned.

[`appleExerciseTime`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleExerciseTime)

A quantity sample type that measures the amount of time the user spent exercising.

[`appleMoveTime`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleMoveTime)

A quantity sample type that measures the amount of time the user has spent performing activities that involve full-body movements during the specified day.

[`appleStandTime`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleStandTime)

A quantity sample type that measures the amount of time the user has spent standing.

[`vo2Max`](/documentation/HealthKit/HKQuantityTypeIdentifier/vo2Max)

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

[`crossCountrySkiingSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/crossCountrySkiingSpeed)

A quantity sample type that measures how fast you are traveling while cross country skiing.

[`cyclingCadence`](/documentation/HealthKit/HKQuantityTypeIdentifier/cyclingCadence)

A quantity sample type that represents the rate at which the user is pedaling.

[`cyclingFunctionalThresholdPower`](/documentation/HealthKit/HKQuantityTypeIdentifier/cyclingFunctionalThresholdPower)

A quantity sample type that measures the estimated maximum average power sustained while riding a bike for 60 minutes.

[`cyclingPower`](/documentation/HealthKit/HKQuantityTypeIdentifier/cyclingPower)

A quantity sample type that measures the estimated power being used while riding a bike.

[`cyclingSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/cyclingSpeed)

A quantity sample type that measures how fast you are traveling while riding a bike.

[`distanceCrossCountrySkiing`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceCrossCountrySkiing)

A quantity sample type that measures the distance the user has moved by cross country skiing.

[`distancePaddleSports`](/documentation/HealthKit/HKQuantityTypeIdentifier/distancePaddleSports)

A quantity sample type that measures the distance the user has moved by paddling sports.

[`distanceRowing`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceRowing)

A quantity sample type that measures the distance the user has moved by rowing.

[`distanceSkatingSports`](/documentation/HealthKit/HKQuantityTypeIdentifier/distanceSkatingSports)

A quantity sample type that measures the distance the user has moved by skating.

[`estimatedWorkoutEffortScore`](/documentation/HealthKit/HKQuantityTypeIdentifier/estimatedWorkoutEffortScore)

[`paddleSportsSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/paddleSportsSpeed)

A quantity sample type that measures the distance the user has moved by paddling sports.

[`physicalEffort`](/documentation/HealthKit/HKQuantityTypeIdentifier/physicalEffort)

A quantity sample type that measures the estimated amount of energy being used to perform a task excluding other factors such as temperature, altitude, or heart rate.

[`rowingSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/rowingSpeed)

A quantity sample type that measures how fast the rower is moving.

[`workoutEffortScore`](/documentation/HealthKit/HKQuantityTypeIdentifier/workoutEffortScore)

### Body measurements

[`height`](/documentation/HealthKit/HKQuantityTypeIdentifier/height)

A quantity sample type that measures the user’s height.

[`bodyMass`](/documentation/HealthKit/HKQuantityTypeIdentifier/bodyMass)

A quantity sample type that measures the user’s weight.

[`bodyMassIndex`](/documentation/HealthKit/HKQuantityTypeIdentifier/bodyMassIndex)

A quantity sample type that measures the user’s body mass index.

[`leanBodyMass`](/documentation/HealthKit/HKQuantityTypeIdentifier/leanBodyMass)

A quantity sample type that measures the user’s lean body mass.

[`bodyFatPercentage`](/documentation/HealthKit/HKQuantityTypeIdentifier/bodyFatPercentage)

A quantity sample type that measures the user’s body fat percentage.

[`waistCircumference`](/documentation/HealthKit/HKQuantityTypeIdentifier/waistCircumference)

A quantity sample type that measures the user’s waist circumference.

[`appleSleepingWristTemperature`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleSleepingWristTemperature)

A quantity sample type that records the wrist temperature during sleep.

### Reproductive health

[`basalBodyTemperature`](/documentation/HealthKit/HKQuantityTypeIdentifier/basalBodyTemperature)

A quantity sample type that records the user’s basal body temperature.

### Hearing

[`environmentalAudioExposure`](/documentation/HealthKit/HKQuantityTypeIdentifier/environmentalAudioExposure)

A quantity sample type that measures audio exposure to sounds in the environment.

[`environmentalSoundReduction`](/documentation/HealthKit/HKQuantityTypeIdentifier/environmentalSoundReduction)

A quantity sample type that measures the difference in sound intensity when wearing headphones that lower environmental sound levels.

[`headphoneAudioExposure`](/documentation/HealthKit/HKQuantityTypeIdentifier/headphoneAudioExposure)

A quantity sample type that measures audio exposure from headphones.

### Vital signs

[`heartRate`](/documentation/HealthKit/HKQuantityTypeIdentifier/heartRate)

A quantity sample type that measures the user’s heart rate.

[`restingHeartRate`](/documentation/HealthKit/HKQuantityTypeIdentifier/restingHeartRate)

A quantity sample type that measures the user’s resting heart rate.

[`walkingHeartRateAverage`](/documentation/HealthKit/HKQuantityTypeIdentifier/walkingHeartRateAverage)

A quantity sample type that measures the user’s heart rate while walking.

[`heartRateVariabilitySDNN`](/documentation/HealthKit/HKQuantityTypeIdentifier/heartRateVariabilitySDNN)

A quantity sample type that measures the standard deviation of heartbeat intervals.

[`heartRateRecoveryOneMinute`](/documentation/HealthKit/HKQuantityTypeIdentifier/heartRateRecoveryOneMinute)

A quantity sample that records the reduction in heart rate from the peak exercise rate to the rate one minute after exercising ended.

[`atrialFibrillationBurden`](/documentation/HealthKit/HKQuantityTypeIdentifier/atrialFibrillationBurden)

A quantity type that measures an estimate of the percentage of time a person’s heart shows signs of atrial fibrillation (AFib) while wearing Apple Watch.

[`oxygenSaturation`](/documentation/HealthKit/HKQuantityTypeIdentifier/oxygenSaturation)

A quantity sample type that measures the user’s oxygen saturation.

[`bodyTemperature`](/documentation/HealthKit/HKQuantityTypeIdentifier/bodyTemperature)

A quantity sample type that measures the user’s body temperature.

[`bloodPressureDiastolic`](/documentation/HealthKit/HKQuantityTypeIdentifier/bloodPressureDiastolic)

A quantity sample type that measures the user’s diastolic blood pressure.

[`bloodPressureSystolic`](/documentation/HealthKit/HKQuantityTypeIdentifier/bloodPressureSystolic)

A quantity sample type that measures the user’s systolic blood pressure.

[`respiratoryRate`](/documentation/HealthKit/HKQuantityTypeIdentifier/respiratoryRate)

A quantity sample type that measures the user’s respiratory rate.

### Lab and test results

[`bloodGlucose`](/documentation/HealthKit/HKQuantityTypeIdentifier/bloodGlucose)

A quantity sample type that measures the user’s blood glucose level.

[`electrodermalActivity`](/documentation/HealthKit/HKQuantityTypeIdentifier/electrodermalActivity)

A quantity sample type that measures electrodermal activity.

[`forcedExpiratoryVolume1`](/documentation/HealthKit/HKQuantityTypeIdentifier/forcedExpiratoryVolume1)

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs during the first second of a forced exhalation.

[`forcedVitalCapacity`](/documentation/HealthKit/HKQuantityTypeIdentifier/forcedVitalCapacity)

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs after taking the deepest breath possible.

[`inhalerUsage`](/documentation/HealthKit/HKQuantityTypeIdentifier/inhalerUsage)

A quantity sample type that measures the number of puffs the user takes from their inhaler.

[`insulinDelivery`](/documentation/HealthKit/HKQuantityTypeIdentifier/insulinDelivery)

A quantity sample that measures the amount of insulin delivered.

[`numberOfTimesFallen`](/documentation/HealthKit/HKQuantityTypeIdentifier/numberOfTimesFallen)

A quantity sample type that measures the number of times the user fell.

[`peakExpiratoryFlowRate`](/documentation/HealthKit/HKQuantityTypeIdentifier/peakExpiratoryFlowRate)

A quantity sample type that measures the user’s maximum flow rate generated during a forceful exhalation.

[`peripheralPerfusionIndex`](/documentation/HealthKit/HKQuantityTypeIdentifier/peripheralPerfusionIndex)

A quantity sample type that measures the user’s peripheral perfusion index.

### Mindfulness and Sleep

[`appleSleepingWristTemperature`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleSleepingWristTemperature)

A quantity sample type that records the wrist temperature during sleep.

[`appleSleepingBreathingDisturbances`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleSleepingBreathingDisturbances)

### Nutrition

[`dietaryBiotin`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryBiotin)

A quantity sample type that measures the amount of biotin (vitamin B7) consumed.

[`dietaryCaffeine`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCaffeine)

A quantity sample type that measures the amount of caffeine consumed.

[`dietaryCalcium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCalcium)

A quantity sample type that measures the amount of calcium consumed.

[`dietaryCarbohydrates`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCarbohydrates)

A quantity sample type that measures the amount of carbohydrates consumed.

[`dietaryChloride`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryChloride)

A quantity sample type that measures the amount of chloride consumed.

[`dietaryCholesterol`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCholesterol)

A quantity sample type that measures the amount of cholesterol consumed.

[`dietaryChromium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryChromium)

A quantity sample type that measures the amount of chromium consumed.

[`dietaryCopper`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCopper)

A quantity sample type that measures the amount of copper consumed.

[`dietaryEnergyConsumed`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryEnergyConsumed)

A quantity sample type that measures the amount of energy consumed.

[`dietaryFatMonounsaturated`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFatMonounsaturated)

A quantity sample type that measures the amount of monounsaturated fat consumed.

[`dietaryFatPolyunsaturated`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFatPolyunsaturated)

A quantity sample type that measures the amount of polyunsaturated fat consumed.

[`dietaryFatSaturated`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFatSaturated)

A quantity sample type that measures the amount of saturated fat consumed.

[`dietaryFatTotal`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFatTotal)

A quantity sample type that measures the total amount of fat consumed.

[`dietaryFiber`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFiber)

A quantity sample type that measures the amount of fiber consumed.

[`dietaryFolate`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryFolate)

A quantity sample type that measures the amount of folate (folic acid) consumed.

[`dietaryIodine`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryIodine)

A quantity sample type that measures the amount of iodine consumed.

[`dietaryIron`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryIron)

A quantity sample type that measures the amount of iron consumed.

[`dietaryMagnesium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryMagnesium)

A quantity sample type that measures the amount of magnesium consumed.

[`dietaryManganese`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryManganese)

A quantity sample type that measures the amount of manganese consumed.

[`dietaryMolybdenum`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryMolybdenum)

A quantity sample type that measures the amount of molybdenum consumed.

[`dietaryNiacin`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryNiacin)

A quantity sample type that measures the amount of niacin (vitamin B3) consumed.

[`dietaryPantothenicAcid`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryPantothenicAcid)

A quantity sample type that measures the amount of pantothenic acid (vitamin B5) consumed.

[`dietaryPhosphorus`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryPhosphorus)

A quantity sample type that measures the amount of phosphorus consumed.

[`dietaryPotassium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryPotassium)

A quantity sample type that measures the amount of potassium consumed.

[`dietaryProtein`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryProtein)

A quantity sample type that measures the amount of protein consumed.

[`dietaryRiboflavin`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryRiboflavin)

A quantity sample type that measures the amount of riboflavin (vitamin B2) consumed.

[`dietarySelenium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietarySelenium)

A quantity sample type that measures the amount of selenium consumed.

[`dietarySodium`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietarySodium)

A quantity sample type that measures the amount of sodium consumed.

[`dietarySugar`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietarySugar)

A quantity sample type that measures the amount of sugar consumed.

[`dietaryThiamin`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryThiamin)

A quantity sample type that measures the amount of thiamin (vitamin B1) consumed.

[`dietaryVitaminA`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminA)

A quantity sample type that measures the amount of vitamin A consumed.

[`dietaryVitaminB12`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminB12)

A quantity sample type that measures the amount of cyanocobalamin (vitamin B12) consumed.

[`dietaryVitaminB6`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminB6)

A quantity sample type that measures the amount of pyridoxine (vitamin B6) consumed.

[`dietaryVitaminC`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminC)

A quantity sample type that measures the amount of vitamin C consumed.

[`dietaryVitaminD`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminD)

A quantity sample type that measures the amount of vitamin D consumed.

[`dietaryVitaminE`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminE)

A quantity sample type that measures the amount of vitamin E consumed.

[`dietaryVitaminK`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryVitaminK)

A quantity sample type that measures the amount of vitamin K consumed.

[`dietaryWater`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryWater)

A quantity sample type that measures the amount of water consumed.

[`dietaryZinc`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryZinc)

A quantity sample type that measures the amount of zinc consumed.

### Alcohol consumption

[`bloodAlcoholContent`](/documentation/HealthKit/HKQuantityTypeIdentifier/bloodAlcoholContent)

A quantity sample type that measures the user’s blood alcohol content.

[`numberOfAlcoholicBeverages`](/documentation/HealthKit/HKQuantityTypeIdentifier/numberOfAlcoholicBeverages)

A quantity sample type that measures the number of standard alcoholic drinks that the user has consumed.

### Mobility

[`appleWalkingSteadiness`](/documentation/HealthKit/HKQuantityTypeIdentifier/appleWalkingSteadiness)

A quantity sample type that measures the steadiness of the user’s gait.

[`sixMinuteWalkTestDistance`](/documentation/HealthKit/HKQuantityTypeIdentifier/sixMinuteWalkTestDistance)

A quantity sample type that stores the distance a user can walk during a six-minute walk test.

[`walkingSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/walkingSpeed)

A quantity sample type that measures the user’s average speed when walking steadily over flat ground.

[`walkingStepLength`](/documentation/HealthKit/HKQuantityTypeIdentifier/walkingStepLength)

A quantity sample type that measures the average length of the user’s step when walking steadily over flat ground.

[`walkingAsymmetryPercentage`](/documentation/HealthKit/HKQuantityTypeIdentifier/walkingAsymmetryPercentage)

A quantity sample type that measures the percentage of steps in which one foot moves at a different speed than the other when walking on flat ground.

[`walkingDoubleSupportPercentage`](/documentation/HealthKit/HKQuantityTypeIdentifier/walkingDoubleSupportPercentage)

A quantity sample type that measures the percentage of time when both of the user’s feet touch the ground while walking steadily over flat ground.

[`stairAscentSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/stairAscentSpeed)

A quantity sample type measuring the user’s speed while climbing a flight of stairs.

[`stairDescentSpeed`](/documentation/HealthKit/HKQuantityTypeIdentifier/stairDescentSpeed)

A quantity sample type measuring the user’s speed while descending a flight of stairs.

### UV exposure

[`timeInDaylight`](/documentation/HealthKit/HKQuantityTypeIdentifier/timeInDaylight)

A quantity sample type that measures amount of time the user spent in daylight.

[`uvExposure`](/documentation/HealthKit/HKQuantityTypeIdentifier/uvExposure)

A quantity sample type that measures the user’s exposure to UV radiation.

### Diving

[`underwaterDepth`](/documentation/HealthKit/HKQuantityTypeIdentifier/underwaterDepth)

A quantity sample that records a person’s depth underwater.

[`waterTemperature`](/documentation/HealthKit/HKQuantityTypeIdentifier/waterTemperature)

A quantity sample that records the water temperature.

### Initializers

[`init(rawValue:)`](/documentation/HealthKit/HKQuantityTypeIdentifier/init(rawValue:))

Returns a newly initialized quantity type identifier using the provided string.



---

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)