# Stack Sizing by powers of 2?

**URL:** <https://forums.freertos.org/t/stack-sizing-by-powers-of-2/17635>\
**Category:** Kernel\
**Created:** [June 13, 2023, 2:43pm UTC](https://forums.freertos.org/t/stack-sizing-by-powers-of-2/17635 "2023-06-13T14:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![richard-damon](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/richard-damon/32/38_2.png) [@richard-damon](https://forums.freertos.org/u/richard-damon)\
**Post date:** [June 13, 2023, 3:09pm UTC](https://forums.freertos.org/t/stack-sizing-by-powers-of-2/17635/2 "2023-06-13T15:09:10Z")

</div>

There is no real advantage to keeping stack sizes powers of 2. They should be a multiple of the heap allocation quantum (if dynamically created), or for a MPU restricted task, the MPU region quantum.

---

_[View the full topic](https://forums.freertos.org/t/stack-sizing-by-powers-of-2/17635)._
