I assume this is a chi-squared goodness-of-fit test for data in $k$
categories (treated by the test as nominal). The test statistic is
$$Q = \sum_{i=1}^k \frac{(X_i = E_i)^2}{E_i},$$
where the $X_i$ are the observed counts in the categories
and the $E_i$ are the expected counts (unrounded), computed
from the model being fit.
Small values of $Q$ represent relative good fit to the model and
large values represent bad fit. So you will reject the null
hypothesis that the data match the model for sufficiently
large values of $Q.$
Provided that the $E_i$ are all above 5 (some authors say most
are above 3), $Q$ is approximately distributed as $\mathsf{Chisq}(\nu),$
where the number of degrees of freedom is $\nu = k - 1.$
However, if the model is given only generically, and you have
to estimate $r$ parameters in order to find the $E_i,$ then
$\nu = k - r = 1.$
I believe the second part of the question is asking for the
critical value of the test. That is, the value $c$ such that
$Q > c$ leads to rejection at a specified significance level.
Knowing the significance level and $\nu,$ you can get the value $c$ appropriate for a particular test
from printed tables of the chi-squared distribution or by using
software.
In R statistical software, the critical value for a test at the 5% level
with $\nu = 5$ is $c = 11.07.$ Here is the computation from R statistical
software, perhaps you can compare it with a printed table.
qchisq(.95, 5)
## 11.0705