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.6TeV, 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±150pb, 3310±120pb, and 744±20pb, 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.