An in vitro method for the prognosis or prediction of response in patients with rheumatoid arthritis to treatment with agents recognising the B-lymphocyte CD20 membrane receptor. The method of the invention comprises an assay in a blood sample from these patients and measuring, before starting the treatment, the transcriptional expression level (mRNA) of at least one of the genes selected from the group: ARG1, CPD, TRAF1, C1QA, LRRN3, HLA-DQA1, NLK, TLR4, LOC89944, TOM1L1, BACH, NCALD, EIF2C2, NFIC, PCDHB7, FLJ32770, ARID3A, C14ORF9, CSNK1E, BCAS1, TEAD2, C6orfl45 and SNTA1; and the comparison of this expression level to the expression values previously obtained in patients who responded and who did not respond to the treatment.