The difference in angular distributions between top quarks and antiquarks, commonly referred to as the charge asymmetry, is measured in pp collisions at the LHC with the CMS experiment. The data sample corresponds to an integrated luminosity of 1.09 fb−1 at a centre-of-mass energy of 7 TeV. Top-quark pairs are selected in the final state with an electron or muon and four or more jets. At least one jet is identified as originating from b-quark hadronization. The charge asymmetry is measured in two variables, one based on the pseudorapidities (η) of the top quarks and the other on their rapidities (y). The results View the MathML source and View the MathML source are consistent within uncertainties with the standard-model predictions.