IT & Developers

Bcrypt Cost Calculator - Find optimal bcrypt cost factor for your system

Find optimal bcrypt cost factor for your system

Created and maintained by: CalcTago Editorial TeamLast updated: 2026-02-09

Formulas and edge cases are reviewed against authoritative references before publication. For methodology, editorial standards, or corrections, use the links below.

Region
Loading calculator...

Frequently asked questions

What is cost factor?

Number of iterations = 2^cost. Higher cost = slower hash = more secure but slower logins.

What cost should I use?

Target ~250ms hash time. In 2024, cost 12-14 is typical for modern servers.

Why not maximum cost?

Too slow impacts user experience and can enable DoS attacks via login attempts.

Related tools

About this tool

This Bcrypt Cost Calculator turns your inputs into practical results. Provide Cost, Target Hash Time, and Test Password to calculate Recommended Cost Factor and Estimated Hash Time.

Adjust values to compare scenarios and see how sensitive the result is. The calculation uses the numbers as entered, so double-check units and expect small differences from rounding in the displayed totals.