Fiducial and total 𝑊 ± and 𝑍 boson cross sections, their ratios and the ratio of top-antitop-quark pair and𝑊 -boson fiducial cross sections are measured in proton–proton collisions at a centre-of-mass energy of √𝑠 =13.6 TeV, corresponding to an integrated luminosity of 29 fb−1 of data collected in 2022 by the ATLAS experimentat the Large Hadron Collider. The measured fiducial cross-section values for 𝑊 + → 𝓁+𝜈, 𝑊 − → 𝓁−𝜈̄, and 𝑍 →𝓁+𝓁− (𝓁 = 𝑒 or 𝜇) boson productions are 4250 ± 150 pb, 3310 ± 120 pb, and 744 ± 20 pb, respectively, where theuncertainty is the total uncertainty, including that arising from the luminosity of about 2.2%. The measurementsare in agreement with Standard-Model predictions calculated at next-to-next-to-leading-order in 𝛼𝑠 , next-to-nextto-leading logarithmic accuracy and next-to-leading-order electroweak accuracy