Physical Constants

Overview

Several packages collect physical constants.

Packages

PhysicalConstants.jl

GitHub Repo stars deps PhysicalConstants Downloads
Stable Dev GitHub last commit (branch) version Coverage

Collection of fundamental physical constants with uncertainties. It supports arbitrary-precision constants.

This is part of the JuliaPhysics organization. It contains data from 3 datasets[1] each as it's own submodule: PhysicalConstants.CODATA2014, PhysicalConstants.CODATA2018, PhysicalConstants.CODATA2022.

List of constants 24: CODATA2022.

Long nameShortValueUnit
AtomicMassConstantm_u1.66053906892e-27kg
AvogadroConstantN_A6.02214076e23mol^-1
BohrMagnetonμ_B9.2740100657e-24J T^-1
BohrRadiusa_05.29177210544e-11
BoltzmannConstantk_B1.380649e-23J K^-1
CharacteristicImpedanceOfVacuumZ_0376.730313412
ElectronMassm_e9.1093837139e-31kg
ElementaryChargee1.602176634e-19
FineStructureConstantα0.0072973525643
MolarGasConstantR8.31446261815324J K^-1 mol^-1
NeutronMassm_n1.67492750056e-27kg
NewtonianConstantOfGravitationG6.6743e-11m^3 kg^-1 s^-2
PlanckConstanth6.62607015e-34J s
ProtonMassm_p1.67262192595e-27kg
ReducedPlanckConstantħ1.0545718176461565e-34J s
RydbergConstantR_∞1.0973731568157e7m^-1
SpeedOfLightInVacuumc_02.99792458e8m s^-1
StandardAccelerationOfGravitationg_n9.80665m s^-2
StandardAtmosphereatm101325.0Pa
StefanBoltzmannConstantσ5.6703744191844294e-8W K^-4 m^-2
ThomsonCrossSectionσ_e6.6524587051e-29m^2
VacuumElectricPermittivityε_08.8541878188e-12F m^-1
VacuumMagneticPermeabilityμ_01.25663706127e-6N A^-2
WienFrequencyDisplacementLawConstantb′5.878925757646825e10Hz K^-1
WienWavelengthDisplacementLawConstantb0.0028977719551851727K m

PhysicalConstants.jl was started in 2018 by giordano. He is still the main contributor with a few commits by 6 other developers[1].

PeriodicTable.jl

GitHub Repo stars deps PeriodicTable Downloads
GitHub last commit (branch) version Coverage

Periodic Table for Julians! 🔥

This is part of the JuliaPhysics organization. Use this i fyou just need standard data on elements: name, appearance, atomicmass, boil, category, color, density, discoveredby, melt, molarheat, namedby, number, period, phase, source, spectral_img, summary, symbol, xpos, ypos, shells.

PeriodicTable.jl was started in 2018 by rahulkp220. Since then, it has mainly been maintained by carstenbauer with contributions from 9 others[1].

Mendeleev.jl

GitHub Repo stars deps Mendeleev Downloads
Stable Dev GitHub last commit (branch) version Coverage

A Julia package for accessing chemical elements data.

This contains (almost) all the same data as PeriodicTable.jl plus some more: https://eben60.github.io/Mendeleev.jl/elements_data_fields/. Use this if you need more data on the elements.

Mendeleev.jl was started in 2022 by Eben60 who is also the top 3 contributor to PeriodicTable.jl. It has only had few updates since 2022 and not by others[1].

IsotopeTable.jl

GitHub Repo stars deps IsotopeTable Downloads
GitHub last commit (branch) version Coverage

Table of Isotopes for Julians. Interoperable with PeriodicTable.jl

IsotopeTable.jl was done in 2022 by Gregstrq[1]. Use this if you need more precise isotope data.

Unitful.jl

GitHub Repo stars deps Unitful Downloads
Stable Dev GitHub last commit (branch) version Coverage

The Unitful.jl package also contains 19 physical constants in this section:

ConstValueDescription
G6.674,30 × 10^-11 m^3 / (kg × s^2)universal gravitational constant
Na6.022,140,76 × 10^23 / mol.Avogadro's constant
RNa × kthe molar gas constant,
R∞1.097,373,156,8160 × 10^-7 / mRydberg constant,
Z0μ0 × cimpedance of free space
c02.997,924,58 × 10^8 m/sspeed of light in a vacuum
gn9.806,65 m / s^2nominal acceleration due to gravity
h6.626,070,15 × 10^-34 J × sPlanck's constant
k1.380,649 × 10^-23 J / KBoltzmann constant
me9.109,383,7015 × 10^-31 kgrest mass of an electron
mn1.674,927,498,04 × 10^-27 kgrest mass of a neutron
mp1.672,621,923,69 × 10^-27 kgrest mass of a proton
q1.602,176,634 × 10^-19 Ccharge of a single electron
ħh / 2π.reduced Planck constant
Φ0h / (2 × q)superconducting magnetic flux quantum
ε0 ϵ01 / (μ0 × c^2)vacuum permittivity constant
μ04π × 10^-7 H / mvacuum permeability constant
μBq × ħ / (2 × me)Bohr magneton
σπ^2 × k^4 / (60 × ħ^3 × c^2)Stefan-Boltzmann constant

Those from PhysicalConstants.jl that are missing here are:

  • Bohr Radius

  • Standard atmospheric pressure

  • Fine Structure Constant

  • Thomson Cross Section

  • Wien Frequency Displacement Law Constant

  • Wien Wavelength Displacement Law Constant

The unique one here is:

  • Superconducting magnetic flux quantum

Unitful.jl was started in 2016 by ajkeller34. It is currently mainly maintained by sostock and has contributions from 76 developers[1].

Star History

[1] By 2025-07-15.
This website is a community effort covering a lot of ever-changing information. It will therefore never be complete or without error. If you see something wrong, or have something to contribute, please see the "Contributing" section in the github repository.

Last modified: July 16, 2025. Built with Franklin.jl