# spreadsheet limits

the grid bounds and request caps deepcalc enforces, and where they come from.

| limit | value | source |
| --- | --- | --- |
| Rows per worksheet | 1,048,576 | Excel grid (2^20), caps.ts EXCEL_MAX_ROWS |
| Columns per worksheet | 16,384 | Excel grid (column XFD), caps.ts EXCEL_MAX_COLS |
| Operations per write request | 10,000 | caps.ts OPS_MAX_BATCH |
| Write request body | 5 MB | caps.ts OPS_MAX_BYTES |
| Xlsx upload | 15 MB | journal-import.ts IMPORT_MAX_BYTES |
| Cells per viewport read | 10,000 | slice.ts SLICE_MAX_CELLS |
| Values per page | 50,000 | slice.ts VALUES_PAGE_MAX |

source: https://deepcalc.com/docs/limits