---
title: bitWidth
framework: swift
role: symbol
role_heading: Type Property
path: swift/int/bitwidth
---

# bitWidth

The number of bits used for the underlying binary representation of values of this type.

## Declaration

```swift
static var bitWidth: Int { get }
```

## Discussion

Discussion The bit width of a Int instance is 32 on 32-bit platforms and 64 on 64-bit platforms.

## See Also

### Working with Binary Representation

- [bitWidth](swift/int/bitwidth-swift.property.md)
- [nonzeroBitCount](swift/int/nonzerobitcount.md)
- [leadingZeroBitCount](swift/int/leadingzerobitcount.md)
- [trailingZeroBitCount](swift/int/trailingzerobitcount.md)
- [words](swift/int/words-swift.property.md)
- [Int.Words](swift/int/words-swift.struct.md)
