EX-23.1 4 a2086854zex-23_1.htm EXHIBIT 23.1
QuickLinks -- Click here to rapidly navigate through this document


EXHIBIT 23.1

CONSENT OF ERNST & YOUNG LLP, INDEPENDENT AUDITORS

        We consent to the reference to our firm under the caption "Experts" in the Registration Statement (Form S-3) and related Prospectus of Pharsight Corporation for the registration of 18,239,104 shares of its common stock and to the incorporation by reference therein of our report dated April 24, 2002 (except for Note 15, as to which the date is June 26, 2002), with respect to the financial statements and schedule of Pharsight Corporation included in its Annual Report (Form 10-K) for the year ended March 31, 2002, filed with the Securities and Exchange Commission.

  /s/  ERNST & YOUNG LLP      

San Jose, California
August 12, 2002





QuickLinks