# MAX_SIZE

> `const` **MAX\_SIZE**: `bigint` = `MAX_PAYLOAD_SIZE`

Defined in: [packages/synapse-core/src/piece/sizing.ts:49](https://github.com/FilOzone/synapse-sdk/blob/7004ea9b9f1577216826ff17bb7f17f4873d9057/packages/synapse-core/src/piece/sizing.ts#L49)

Maximum payload size `calculate` accepts: 127 × 2^47 bytes (~15.9 PiB).

The 1-byte height field allows larger trees, but past this size the
padding and piece size no longer fit exactly in a JS number. Matches the
limit enforced by the hasher.