Data logging storage calculator
Enter how many tags you log, how often, what a sample costs and how long you keep it, and get the daily growth and the disk to provision.
Calculator
This calculator needs JavaScript. Without it, use the formulas under "How it works" and the worked example.
Disk size for a logging schedule
Bytes per sample depends on your historian; 16 is a bare value plus timestamp. Overhead covers indexes and database structures.
How it works
Logging cost is plain multiplication: how many samples are written, how many bytes each one takes, and how long they are kept. The calculator follows that chain and then adds the room a database needs for its indexes and the free space a disk should keep.
- Samples per day = tags × 86,400 ÷ sample interval in seconds, times the share that deadband or compression keeps.
- Raw data per day = samples per day × bytes stored per sample.
- Data per day with overhead = raw data × (1 + overhead percent ÷ 100).
- Disk to provision = data per day × retention days ÷ (1 - free space percent ÷ 100).
Sizes use decimal units, 1 GB = 1,000,000,000 bytes, which is how disk makers rate a drive. Bytes per sample is the one number you must find for your own historian: a bare 8-byte value plus an 8-byte timestamp is 16, and a store that also keeps quality codes, tag names or per-point metadata costs more. Measure the folder growth over a week of real production and enter the result, if you can. Backups, replicas and a second copy are not counted here.
Worked example
A line logs 20,000 tags every 5 seconds at 16 bytes a sample. Deadband keeps about half of the samples, the database adds 30 percent for indexes, and the plant keeps a year of history. That is 172800000 samples a day, or 2.7648 GB raw and 3.59424 GB with overhead.
A year of that is 1.311898 TB. Leaving a quarter of the disk free, the disk to provision is at least 1.749197 TB.
Common mistakes
- Taking bytes per sample from a datasheet that quotes the raw value size. The stored record also carries a timestamp, quality and index cost.
- Forgetting that deadband and compression cut the sample count only for values that do not move. A noisy sensor can store every sample.
- Counting retention but not the free space. A database disk that is nearly full slows down and can stop writing.
- Leaving out the backups and a second copy, which each need the same space again.
- Mixing units. A drive sold as 1 TB holds 1,000 GB, not 1,024, and an operating system may report binary units.
Related articles
- How tag count and write rate drive historian database sizing
- Where the Ignition Edge tag historian writes its data
- Cut Ignition Tag Historian growth before compressing the table
- Estimate historian disk space from measured daily growth
- Why Auto deadband style delays Double tag history storage
- Sizing a self-hosted Node-RED InfluxDB Grafana historian
- What one Telegraf point really costs on InfluxDB disk
- WinCC CAS versus PI historian for long-term archiving