The total number of credits needed to graduate with a diploma can vary depending on the educational institution and the specific program of study. In the United States, for example, high schools typically require students to earn between 20 to 24 credits for graduation.
For post-secondary institutions like colleges or universities, an associate degree usually requires around 60 credits, while a bachelor's degree typically requires about 120 credits.
To get an accurate answer specific to your situation, it's best to check with your school or educational program for their specific credit requirements.