# 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/840d7b2c6263846ac51b7558000e62dd68d33a44/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.