A New York teenager who taught himself to code at the age of seven now rakes in $1.4 million a month through his AI calorie-tracking app.

Zach Yadegari, 18, founded Cal AI from his parents' home in Roslyn, a village in Nassau County, Long Island in May 2024, and he now has 30 employees.

The app's users upload a photo of their meal, and the artificial intelligence software estimates the total calories with 90 percent accuracy, according to the company.

Cal AI is available on Apple and Google Play for a subscription fee of $2.49 per month or $29.99 annually.

Yadegari told CNBC Make It he started learning to code at the age of seven at a software summer camp, after playing online games like Minecraft.