Math: How Many Combinations Are There with 5 Numbers?

I have checkbox form with 5 choices. The user can choose say #1,#3 and #4; or #1 and #2; or #2, #3, #4 and #5 and so on. How can i find out how many possible combinations are there?

Is it 5*5*5=125?

4

2 Answers

Checkboxes are binary so you'll be able to represent any 5-digit binary number with 5 checkboxes.

The answer is 2⁵ = 32

1 number - 2 options
2 numbers - 4 options
3 numbers - 8 options
4 numbers - 16 options
5 numbers - 32 options

This is correct if we take into account the option when the user doesn't choose anything. If we don't then do -1 (for 5 numbers it will be 31).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest