ERROR: numeric field overflow — A field with precision 5, scale 2 must round to an absolute value less than 10^3
A number doesn’t fit the column’s numeric(precision, scale) or integer range.
Exact message you may see
numeric field overflowinteger out of range
Seen on:
PostgreSQL
Meaning
numeric(5,2) allows up to 999.99. integer overflows above 2,147,483,647 (“integer out of range”).
Common causes
- Value larger than precision allows
- integer columns for large ids/counters
- Currency in minor units exceeding int
⚡ Quick fix
- Increase precision (numeric(12,2))
- Use bigint for large ids/counters
Detailed fix by platform
PostgreSQL
ALTER TABLE orders ALTER COLUMN total TYPE numeric(12,2);
How to diagnose
- Column — Type and precision
- Value — How large?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in PostgreSQL
- could not connect PostgreSQL: could not connect to server / connection refused — Is the server running on host and accepting TCP/IP connections?
- 25P02 ERROR: current transaction is aborted, commands ignored until end of transaction block
- pg_restore text dump pg_restore: error: input file appears to be a text format dump. Please use psql.
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Did this fix work for you?
Report a correction or suggest an improvement
Last updated 14 Oct 2026