---
title: bitWidth
framework: swift
role: symbol
role_heading: Instance Property
path: swift/int/bitwidth-swift.property
---

# bitWidth

The number of bits in the current binary representation of this value.

## Declaration

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

## Discussion

Discussion This property is a constant for instances of fixed-width integer types.

## See Also

### Working with Binary Representation

- [bitWidth](swift/int/bitwidth.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)
