<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableView/estimatedRowHeight",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableView(py)estimatedRowHeight"
  },
  "title" : "estimatedRowHeight"
}
-->

# estimatedRowHeight

The estimated height of rows in the table view.

```
var estimatedRowHeight: CGFloat { get set }
```

## Discussion

Providing a nonnegative estimate of the height of rows can improve the performance of loading the table view. If the table contains variable height rows, it might be expensive to calculate all their heights when the table loads. Estimation allows you to defer some of the cost of geometry calculation from load time to scrolling time.

The default value is [`automaticDimension`](/documentation/UIKit/UITableView/automaticDimension), which means that the table view selects an estimated height to use on your behalf. Setting the value to `0` disables estimated heights, which causes the table view to request the actual height for each cell. If your table uses self-sizing cells, the value of this property must not be `0`.

When using height estimates, the table view actively manages the [`contentOffset`](/documentation/UIKit/UIScrollView/contentOffset) and [`contentSize`](/documentation/UIKit/UIScrollView/contentSize) properties inherited from its scroll view. Don’t attempt to read or modify those properties directly.

## See Also

[`estimatedSectionHeaderHeight`](/documentation/UIKit/UITableView/estimatedSectionHeaderHeight)

The estimated height of section headers in the table view.

[`estimatedSectionFooterHeight`](/documentation/UIKit/UITableView/estimatedSectionFooterHeight)

The estimated height of section footers in the table view.



---

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)