<!--
{
  "documentType" : "article",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/exposure-risk-value-calculation-in-exposurenotification-version-1",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Exposure Risk Value Calculation in ExposureNotification Version 1"
}
-->

# Exposure Risk Value Calculation in ExposureNotification Version 1

Learn how to determine a user’s risk of exposure.

## Discussion

The ExposureNotification framework uses an Exposure Risk Value to assist the user in determining whether they may have been exposed to the coronavirus. Health authorities have flexibility in calculating this value by setting weights and values in a configuration object.

To adopt this method of risk assessment, set the `ENAPIVersion` key to the integer value `1` in the app’s `Info.plist`.

The following diagram illustrates the data structure and formula used to calculate the Exposure Risk Value.

![A diagram that shows how the Exposure Risk Value is calculated.](images/com.apple.exposurenotification/media-3667011@2x.png)

The following parameters are used to calculate a risk for each exposure incident:

- Transmission Risk: Transmission risk is intended to reflect the status of infection in the affected user and its effect on risk of transmission. The value is based on the affected user’s symptoms, when symptoms first appeared, level of diagnosis verification, or other determination from the app or a health authority.
- Duration : Cumulative duration of the exposure. The framework measures this value.
- Days: Days since the exposure incident. The framework measures this value.
- Attenuation: The attenuation (`transmission power - RSSI`) can vary during an exposure event. Attenuation values greater than 0 are weighted by the duration at each risk level and averaged for the overall duration. The framework measures and calculates this value.

The [`totalRiskScore`](/documentation/ExposureNotification/ENExposureInfo/totalRiskScore) is calculated using the following formula:

```swift
totalRiskScore = transmissionRiskValue * durationRiskValue *
daysSinceLastExposureRiskValue * attenuationRiskValue
```

Level values are in the range of 0-8. While the formula’s range can be up to 4096, the framework limits [`totalRiskScore`](/documentation/ExposureNotification/ENExposureInfo/totalRiskScore) to the upper limit of [`ENRiskScore`](/documentation/ExposureNotification/ENRiskScore), which has a maximum value of 255.

The following diagram illustrates an example of an Exposure Risk Value calculated for a person who was exposed to another person who was diagnosed positive.

![A diagram showing an example of calculating the risk score.](images/com.apple.exposurenotification/media-3667010@2x.png)

For this example, the other user reported a positive diagnosis, the encounter between the two devices lasted 14 minutes, it happened 4 days ago, and the signal strength attenuation between their phones had a weighted average of 68. The `totalRiskScore` is limited and set to 255.

To exclude exposure incidents with a risk score below a certain amount, set  [`minimumRiskScoreFullRange`](/documentation/ExposureNotification/ENExposureConfiguration/minimumRiskScoreFullRange). The framework doesn’t use this property when calculating [`matchedKeyCount`](/documentation/ExposureNotification/ENExposureDetectionSummary/matchedKeyCount) or [`daysSinceLastExposureThreshold`](/documentation/ExposureNotification/ENExposureConfiguration/daysSinceLastExposureThreshold).

## Topics

### Exposure Information

[`ENExposureInfo`](/documentation/ExposureNotification/ENExposureInfo)

The incident information related to a potential exposure.

[`ENRiskScore`](/documentation/ExposureNotification/ENRiskScore)

A value signifying the risk of an exposure event.

[`ENRiskLevel`](/documentation/ExposureNotification/ENRiskLevel)

The user’s estimated risk of exposure.

[`ENRiskLevelValue`](/documentation/ExposureNotification/ENRiskLevelValue)

The value associated with a particular risk level.

### Level Configuration

[`attenuationDurationThresholds`](/documentation/ExposureNotification/ENExposureConfiguration/attenuationDurationThresholds)

The configurable signal-loss thresholds for calculating exposure risk.

[`attenuationLevelValues`](/documentation/ExposureNotification/ENExposureConfiguration/attenuationLevelValues)

The level values for attenuation.

[`daysSinceLastExposureLevelValues`](/documentation/ExposureNotification/ENExposureConfiguration/daysSinceLastExposureLevelValues)

The level values for days since last exposure.

[`durationLevelValues`](/documentation/ExposureNotification/ENExposureConfiguration/durationLevelValues)

The level values for duration.

[`transmissionRiskLevelValues`](/documentation/ExposureNotification/ENExposureConfiguration/transmissionRiskLevelValues)

The level values for transmission risk.

[`metadata`](/documentation/ExposureNotification/ENExposureConfiguration/metadata)

The metadata you use to configure the exposure calculations.

### Minimum Threshold Configuration

[`minimumRiskScore`](/documentation/ExposureNotification/ENExposureConfiguration/minimumRiskScore)

The value that is the user’s minimum risk score.

[`minimumRiskScoreFullRange`](/documentation/ExposureNotification/ENExposureConfiguration/minimumRiskScoreFullRange)

The value that is the user’s full-range minimum risk score.

### Weight Configuration

[`attenuationWeight`](/documentation/ExposureNotification/ENExposureConfiguration/attenuationWeight)

The weight assigned to a score for the Bluetooth signal strength.

[`daysSinceLastExposureWeight`](/documentation/ExposureNotification/ENExposureConfiguration/daysSinceLastExposureWeight)

The weight assigned to a score for the days since the user’s exposure.

[`durationWeight`](/documentation/ExposureNotification/ENExposureConfiguration/durationWeight)

The weight assigned to a score for the duration of the user’s exposure.

[`transmissionRiskWeight`](/documentation/ExposureNotification/ENExposureConfiguration/transmissionRiskWeight)

The weight assigned to a score for the affected user’s estimated risk of transmission.



---

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)