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

# bloodGlucose

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

```
static let bloodGlucose: HKQuantityTypeIdentifier
```

## Discussion

These samples use mass/volume units (described in [`HKUnit`](/documentation/HealthKit/HKUnit)) and measure discrete values (described in [`HKQuantityAggregationStyle`](/documentation/HealthKit/HKQuantityAggregationStyle)).

Please pay attention to the following issues while creating blood glucose samples:

- Blood glucose samples may be measured in mg/dL (milligrams per deciliter) or mmol/L (millimoles per liter), depending on the region.
- The Health app lets users select their preferred units. The Health app uses these units for both the display and manual entry of blood glucose samples.
- You can access the preferred units using the [`preferredUnits(for:completion:)`](/documentation/HealthKit/HKHealthStore/preferredUnits(for:completion:)) method. If your app connects to a glucose meter that uses units other than the preferred units, alert the user. You can also recommend that users change their preferred units to match the glucose meter.
- Don’t save samples to HealthKit when the blood glucose meter is processing control solution.

## Topics

### Metadata Keys

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

A key that indicates the relative timing of a blood glucose reading to a meal.

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