Exhibit 5-1
1600 Bausch & Lomb Place
Rochester, New York 14604-2711
(585) 232-6500
Fax: (585) 232-2152
November 7, 2005
Paychex, Inc.
911 Panorama Trail South
Rochester, New York 14625
Ladies and Gentlemen:
We have acted as counsel to Paychex, Inc., a Delaware corporation (the Company), in connection
with the Registration Statement on Form S-8 (the Registration Statement) to be filed by the
Company on November 7, 2005 with the Securities and Exchange Commission (the Commission) under
the Securities Act of 1933, as amended (the Securities Act), for the purpose of registering with
the Commission the issuance and sale of up to 550,000 shares of Common Stock of the Company, par
value $.01 per share (the Common Stock), pursuant to a non-qualified stock option grant to
Jonathan J. Judge (the Option Grant).
This opinion is being delivered to you in connection with the Registration Statement.
We have examined originals or copies, certified or otherwise identified to our satisfaction, of all
such records of the Company and all such agreements, certificates of public officials, certificates
of officers or other representatives of the Company, and such other documents, certificates and
corporate or other records as we have deemed necessary or appropriate as a basis for the opinions
set forth herein, including (i) the Amended Certificate of Incorporation of the Company, (ii) the
Bylaws of the Company, as amended to the date hereof, and (iii) the Option Grant. As to questions
of fact material to our opinions expressed herein, we have, when relevant facts were not
independently established, relied upon certificates of, and information received from, the Company
and/or representatives of the Company. We have made no independent investigation of the facts
stated in such certificates or as to any information received from the Company and/or
representatives of the Company and do not opine as to the accuracy of such factual matters. We
also have relied, without investigation, upon certificates and other documents from public
officials.
Members of our firm involved in the preparation of this opinion are licensed to practice law in the
State of New York and we do not purport to be experts on, or to express any opinion herein
concerning, the laws of any jurisdiction other than the laws of the State of New York and the
General Corporation Law of the State of Delaware.
Based upon and subject to the foregoing, and the other qualifications and limitations contained
herein, and after (a) the above-referenced Registration Statement has become effective under the
Securities Act and assuming that such effectiveness remains in effect throughout the period during
which shares of Common Stock are offered and sold pursuant to the Option Grant, (b) the shares of
Common Stock to be o