<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKUnit/reciprocal()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKUnit(im)reciprocalUnit"
  },
  "title" : "reciprocal()"
}
-->

# reciprocal()

Returns a complex unit representing the unit’s reciprocal.

```
func reciprocal() -> HKUnit
```

## Return Value

A complex unit that is the reciprocal of the unit the method was called on.

## Discussion

This method creates a new, complex unit by dividing 1 by the unit the method was called on. This is often only one step in a series of operations. For example, you can use this method to create a meters-per-second unit, as shown below.

```swift
let meters = HKUnit.meterUnit()
let seconds = HKUnit.secondUnit()
let secondsInverse = seconds.reciprocalUnit()
let metersPerSecond = meters.unitMultipliedByUnit(secondsInverse)
```

## See Also

[`+  unitFromString:`](/documentation/HealthKit/HKUnit/init(from:)-9qont)

Returns the unit instance described by 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)