Binding to methotrexate, an antineoplastic antimetabolite with immunosuppressant properties. It is an inhibitor of tetrahydrofolate reductase and prevents the formation of tetrahydrofolate, necessary for synthesis of thymidylate, an essential component of DNA.