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

# unitMultiplied(by:)

Creates a complex unit by multiplying the receiving unit with another unit.

```
func unitMultiplied(by unit: HKUnit) -> HKUnit
```

## Parameters

`unit`

The unit to be multiplied.

## Return Value

A new, complex unit.

## Discussion

You can create a complex unit by multiplying two units together. For example, you could create a foot-pound unit by multiplying a foot unit by a pound unit as shown below.

```objc
HKUnit *foot = [HKUnit footUnit];
HKUnit *pound = [HKUnit poundUnit];
HKUnit *footPound = [foot unitMultipliedByUnit:pound];
```

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