It is challenging to determine an average time for startups to become profitable because different startups have different goals and measure profitability differently.
Also, it depends on the overall costs of startups. The higher the startup costs, the longer it will take for the startup to become profitable.
It can take around two to three years for startups to become profitable in conventional terms, but you can't define business success on these terms.