# How to determine sample size for change in conversion rate?

Could someone help point me to what statistical method I should be using to calculate the desired sample size?

We are currently in the process of implementing a new change, our hypothesis is that this change would lead to a 10% lift (relative change) in the conversion rate from 20% (current baseline) to 22%(after implementation of change). I want to understand what is the best way to calculate the sample size and how long we need to measure after the change until we can conclude the lift is statistically significant.

Here is a rough idea. For large $$n,$$ an approximate 95% confidence interval for the true conversion rate $$p$$ is of the form $$\hat p \pm 1.96\sqrt{\hat p(1-\hat p)/n},$$ where $$\hat p$$ is the estimated conversion rate.
It seems you want to detect a difference of $$2\% = 0.02.$$ Setting the margin or error $$1.96\sqrt{\hat p(1-\hat p)/n} = 0.02$$ leads to approximately $$n = 1600.$$
For a more precise computation you could set up a test of hypothesis, specify the significance level and desired power for detecting a difference of 0.02, and use one of many 'power and sample size' utilities that provide the required value of $$n.$$