In this work, the hypothesis that the universe is made up of 4-dimensional spheres of space, whose diameter is the Planck length, allows us to calculate most of the constants used in current physical theories. Calculated constants include: elementary charge, fine structure constant, electron mass, Planck constant, gravitational constant, electrical constant, Boltzmann constant, mass and charge of up and down quarks, muon mass, and Higgs boson. All of these depend on the speed of light and the Planck length, which shows that all the constants are related and not due to chance.