Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two numbers which summed up are considered to be $100\%$.

The first number $n_1$ should decide the percentage amount.

For e.g.,

$$n_1 = 5$$

$$n_2 = 15$$

so the percentage in this case would be $25\%$.

How do I calculate this? :) I mean how do I get the formula?

share|cite|improve this question

In this case, we want $\dfrac{n_1}{n_1 + n_2}$. I don't really have much else to say about it. If you want it in %, multiply by 100. Otherwise, it's a decimal between 0 and 1.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.