bcrypt Cost Factor Calculator
Estimate bcrypt hashing time and cost factor for password hashing.
4 (fastest)20 (slowest)
Time per hash (approx.)400.0 ms
Iterations (2^N)4,096
Hashes/sec3
Cost Factor12
Cost 12 is appropriate for most web applications.
cost=10100.0 ms/hash1,024 iterations
cost=11200.0 ms/hash2,048 iterations
cost=12400.0 ms/hash4,096 iterations
cost=13800.0 ms/hash8,192 iterations
cost=141.60 s/hash16,384 iterations
Times are estimates based on ~100ms at cost=10 on modern server hardware. Actual times vary by CPU.