Fiducial and total W± and Z boson cross sections, their ratios and the ratio of top-antitop-quark pair and W-boson fiducial cross sections are measured in proton–proton collisions at a centre-of-mass energy of s=13.6 TeV, corresponding to an integrated luminosity of 29 fb−1 of data collected in 2022 by the ATLAS experiment at the Large Hadron Collider. The measured fiducial cross-section values for W+→ℓ+ν, W−→ℓ−ν¯, and Z→ℓ+ℓ− (ℓ=e or μ) boson productions are 4250±150 pb, 3310±120 pb, and 744±20 pb, respectively, where the uncertainty is the total uncertainty, including that arising from the luminosity of about 2.2%. The measurements are in agreement with Standard-Model predictions calculated at next-to-next-to-leading-order in αs, next-to-next-to-leading logarithmic accuracy and next-to-leading-order electroweak accuracy.