A well-known formula is patented. Can I change it before applying?

It depends on the creativity, novelty and practicality of this change.

Whether there is a substantial breakthrough compared with the original formula, etc.

Moreover, the formula can only apply for an invention patent.

The examination of invention patents is much stricter than the other two patents-utility model and design.

So the probability of passing is relatively low.