The current accepted theory of the big bang is based on observations of the light emitted from the earliest objects in the Universe, that are known as “cosmic microwave background radiation”, or “CMB” for short. This light has been traveling for billions of years, so it was formed at the time of the big bang, and gives us information about what happened then.
A key insight of the theory is that the Universe is expanding and has been doing so for the past 15 billion years. That’s to say, the space between every pair of objects in the Universe is getting bigger, and it used to be smaller. Also, for the past 3-4 billion years, the expansion has been speeding up. Astronomers have been able to measure this using the red shift of light from galaxies: redder light indicates that they are moving away from us. And we know how far apart galaxies were in the past, so this gives a direct measurement of how fast the Universe is expanding.
And we also know what the Universe was like right after the big bang: almost all the matter and energy of the Universe was located in a tiny volume that contained a very high-energy, highly-compressed state. This state was the only state possible at that time.
Many ideas have been proposed to explain what happened next, but the most well-supported explanation is that the Universe initially expanded so fast that at the early stages it almost immediately decoupled from the high-energy state that existed right after the big bang, and the energy of the high-energy state was transformed into other forms of energy: mostly light. And this light, the CMB, is what we detect today.
We also know that the Universe is expanding, and was denser and hotter in the past. This allows us to use the expansion rate as a “clock” to calculate the distance between two objects at any given time, by measuring how much more distant they are now. This can be applied to measure how far away the CMB was when it emitted light, and thereby to calculate its temperature when it was emitted. According to the model, the CMB is uniform and was close to 3,000K (or 3,000 degrees Celsius) when it was emitted.
We can also calculate how long the Universe has been in a “reheating phase” since the big bang, since the Universe is currently around 4,000K. This allows us to calculate how long the Universe has been in its current state, and how long it took to cool down enough for the CMB to form. It took around 300,000 years for the Universe to cool enough to be able to form the CMB.
And finally, by comparing the age of the Universe to the time that light has traveled since the big bang, we can calculate how far away objects in the Universe are now. (The standard model predicts that the radius of the Universe is 2.5 times its age, in meters. The current estimate for the age of the Universe is around 13.7 billion years, so the radius of the Universe is about 45 billion light years.)