Skip to main content
Skip to Filters
191 listings
  • $49,998
    good price
    $2,472 below market
    • 32,738 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 26 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in San Francisco, CA / 457 miles away from San Diego, CA

    CarFax No Accidents Reported,CarFax 1-Owner,Rare Find,Apple CarPlay,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Hands-Free Liftgate,Heate...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UX43DT0XP9P78970
    Stock: P9P78970T
    Certified Pre-Owned: No

  • $55,796
    fair price
    $776 above market
    • 6,513 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • Irvine BMW (71 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Irvine, CA / 71 miles away from San Diego, CA

    This 2025 Dark Graphite Metallic BMW X4 xDrive30i AWD is well equipped and includes these features and benefits: Connected Package Pro, 12 Speakers, 4...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT08S9Y32108
    Stock: SLX74428
    Certified Pre-Owned: No
    Listed since: 05-22-2025

  • $49,999
    fair price
    $106 below market
    • 9,468 miles
    • No accidents, 1 owner, rental vehicle
    • 5 Seats, 21 City / 27 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Bloomfield, NJ / 2,418 miles away from San Diego, CA

    CarFax No Accidents Reported,CarFax 1-Owner,Apple CarPlay,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Heated Seats,Keyless Start,Navigati...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: No

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT01S9Z75322
    Stock: BBS10189
    Certified Pre-Owned: No

  • New Listing
    $38,998
    fair price
    $694 below market
    • 34,389 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from CO to CA*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Colorado Springs, CO / 816 miles away from San Diego, CA

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT04P9R13307
    Stock: 27629470
    Certified Pre-Owned: No

  • $43,888
    fair price
    $1,029 above market
    • 19,038 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Irvine BMW (71 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Irvine, CA / 71 miles away from San Diego, CA

    This 2023 Dark Graphite Metallic BMW X4 xDrive30i AWD is well equipped and includes these features and benefits. Certified. Clean CARFAX. CARFAX One-O...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT06P9S81166
    Stock: X75704A
    Certified Pre-Owned: Yes
    Listed since: 05-09-2025

  • $48,999
    fair price
    $726 below market
    • 11,362 miles
    • No accidents, 1 owner, rental vehicle
    • 5 Seats, 21 City / 27 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Bloomfield, NJ / 2,418 miles away from San Diego, CA

    CarFax No Accidents Reported,CarFax 1-Owner,Apple CarPlay,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Heated Seats,Keyless Start,Navigati...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: No

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT04S9Z73662
    Stock: BBS10190
    Certified Pre-Owned: No

  • New Listing
    • 37,141 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Carvana (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 1,183 miles away from San Diego, CA

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT07P9N70346
    Stock: 2003788651
    Certified Pre-Owned: No
    Listed since: 06-06-2025

  • New Listing
    $45,998
    fair price
    $155 above market
    • 14,693 miles
    • 5 Seats, 21 City / 28 Hwy MPG
    • CarMax (In-stock online)
    • Transfer available from VA to CA*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Richmond, VA / 2,244 miles away from San Diego, CA

    CarMax values transparency and wants you to love your next car, not settle on it. Certain vehicles may have unrepaired safety recalls. Check nhtsa.gov...

    AutoCheck Vehicle History Summary Unavailable.

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT03P9R53507
    Stock: 27855752
    Certified Pre-Owned: No

  • $41,700
    fair price
    $450 below market
    • 18,941 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in San Francisco, CA / 457 miles away from San Diego, CA

    CarFax No Accidents Reported,CarFax 1-Owner,Apple CarPlay,Automatic Parking,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Hands-Free Liftga...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT05P9P09437
    Stock: P9P09437L
    Certified Pre-Owned: No

  • $42,991
    fair price
    $273 above market
    • 24,754 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 27 Hwy MPG
    • BMW of San Diego (7 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in San Diego, CA / 7 miles away from San Diego, CA

    Alpine White 2021 BMW X4 M40i AWD 8-Speed Automatic Sport 3.0L I6 Turbocharged DOHC 24V LEV3-ULEV70 382hpOdometer is 19050 miles below market averag...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX2V5C04M9G31758
    Stock: 11801A
    Certified Pre-Owned: No
    Listed since: 08-30-2025

  • New Listing
    Stock photo**
    $43,881
    fair price
    $299 below market
    • 30,744 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Pacific BMW (116 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, CA / 116 miles away from San Diego, CA

    Brooklyn Grey Metallic exterior and Black interior. Heated Seats, Moonroof, Navigation, Back-Up Camera, Rear Air, Power Liftgate, All Wheel Drive, Tur...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT09P9P11725
    Stock: 229233A
    Certified Pre-Owned: Yes
    Listed since: 09-18-2025

  • Price Drop
    $33,788
    fair price
    $166 above market
    • 36,333 miles
    • No accidents, 2 owners, personal use
    • 5 Seats, 23 City / 29 Hwy MPG
    • BMW of Palm Springs (83 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Palm Springs, CA / 83 miles away from San Diego, CA

    BMW of Palm Springs is delighted to showcase, this Pre-Owned 2021 BMW X4 xDrive30i. Finished in elegant Glacier Silver Metallic and showing 36,333 mil...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    25 Combined MPG (23 City/29 Highway)

    Listing Information:

    VIN: 5UX2V1C00M9D96963
    Stock: TM9D96963
    Certified Pre-Owned: No
    Listed since: 09-05-2025

  • New Listing
    Stock photo**
    $49,995
    fair price
    $201 below market
    • 32,915 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 26 Hwy MPG
    • BMW of Camarillo (150 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Camarillo, CA / 150 miles away from San Diego, CA

    Alpine White M40i AWDRecent Arrival! Clean CARFAX. CARFAX One-Owner.Traditional Certified, 12 Speakers, 3.39 Axle Ratio, 4-Wheel Disc Brakes, ABS brak...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UX43DT07P9P27913
    Stock: B1415P
    Certified Pre-Owned: No
    Listed since: 09-10-2025

  • Price Drop
    $36,990
    fair price
    $695 above market
    • 61,782 miles
    • No accidents, 1 owner, personal use
    • 5 Seats, 21 City / 28 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Freehold, NJ / 2,414 miles away from San Diego, CA

    CarFax No Accidents Reported,CarFax 1-Owner,Apple CarPlay,Back-Up Camera,Blind Spot Monitor,Brake Assist,Hands-Free Liftgate,Heated Seats,Heated Steer...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT04P9P11602
    Stock: T9163301A
    Certified Pre-Owned: No

  • New Listing
    • 46,484 miles
    • No accidents, 2 owners, rental vehicle
    • 5 Seats, 21 City / 28 Hwy MPG
    • Carvana (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 1,183 miles away from San Diego, CA

    At Carvana, we go miles beyond the extra mile. That's why we provide you with a convenient, fast, and hassle-free car buying experience that puts you ...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: No

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT07P9R41120
    Stock: 2003988647
    Certified Pre-Owned: No
    Listed since: 08-26-2025

    • 4,520 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • Century West BMW (120 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in North Hollywood, CA / 120 miles away from San Diego, CA

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT08S9X69012
    Stock: P76429
    Certified Pre-Owned: No
    Listed since: 09-06-2025

    • 3,910 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • Pacific BMW (116 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, CA / 116 miles away from San Diego, CA

    NAV, Sunroof, Heated Seats, Satellite Radio, Back-Up Camera, Rear Air, Turbo, All Wheel Drive, Panoramic Roof, Alloy Wheels, Power Liftgate. SEE MORE!...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT0XS9Z13238
    Stock: 612628
    Certified Pre-Owned: No
    Listed since: 08-23-2025

    • 9,764 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 27 Hwy MPG
    • Century West BMW (120 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in North Hollywood, CA / 120 miles away from San Diego, CA

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/27 Highway)

    Listing Information:

    VIN: 5UX33DT06S9X84771
    Stock: L76274
    Certified Pre-Owned: No
    Listed since: 07-12-2025

    • 14,203 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Pacific BMW (116 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Glendale, CA / 116 miles away from San Diego, CA

    Mineral White Metallic exterior and Tacora Red interior. Moonroof, Navigation, Onboard Communications System, iPod/MP3 Input, Satellite Radio, Rear Ai...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT0XP9R33190
    Stock: 227051A
    Certified Pre-Owned: Yes
    Listed since: 08-06-2025

    • 10,398 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 26 Hwy MPG
    • Driveway (In-stock online)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Urbandale, IA / 1,423 miles away from San Diego, CA

    CarFax 1-Owner,Low Mileage,Rare Find,Apple CarPlay,Automatic Parking,Back-Up Camera,Blind Spot Monitor,Bluetooth,Brake Assist,Hands-Free Liftgate,Head...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: No

    Features and Specs:

    23 Combined MPG (21 City/26 Highway)

    Listing Information:

    VIN: 5UX43DT04P9R64777
    Stock: P9R64777NT
    Certified Pre-Owned: No

    • 16,890 miles
    • No accidents, 1 owner, personal use only
    • 5 Seats, 21 City / 28 Hwy MPG
    • Bob Smith BMW (131 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Calabasas, CA / 131 miles away from San Diego, CA

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: Yes

    Personal Use Only: Yes

    History Provider: AutoCheck

    Title Details: Clean Title

    Salvage Vehicle: No

    Frame Damage: No

    Theft History: No

    Lemon Status: No

    Free History Report: Yes

    Features and Specs:

    24 Combined MPG (21 City/28 Highway)

    Listing Information:

    VIN: 5UX33DT05P9S22738
    Stock: P9S22738T
    Certified Pre-Owned: No
    Listed since: 06-15-2025

Showing 64 - 84 out of 191 listings

Consumer Reviews for the BMW X4

Read recent reviews for the BMW X4
Overall Consumer Rating
4.4 out of 5 stars26 Reviews
Write a vehicle reviewSee all 26 reviews
  • 5 star
    (73%)
  • 4 star
    (12%)
  • 3 star
    (4%)
  • 2 star
    (4%)
  • 1 star
    (8%)
4 out of 5 stars

Fun to Drive

NYRIZ, 04/16/2021
2021 BMW X4 M40i 4dr SUV AWD (3.0L 6cyl Turbo 8A)
The ride is smooth. However in sport plus on regular streets will snap you back a bit. The exterior styling is great and you will get looks and comments. Not a true M Car but the M40i makes more sense for a daily driver. X4 M40i and X4M 0-60 times are too close to justify paying $10,000 more for the privilege of driving an M car
Report abuse

Used 2023 BMW X4 in San Diego, CA Values

Estimated values
2023 BMW X4 M40i 4dr SUV AWD (3.0L 6cyl Turbo gas/electric mild hybrid 8A) with no options
ConditionTrade-InPrivate PartyDealer Retail
Outstanding$44,481$47,293$50,466
Clean$43,980$46,723$49,817
Average$43,144$45,772$48,736
Rough$42,059$44,536$47,330

The average list price of a used 2023 BMW X4 in San Diego, California is $46,556. The average mileage on a used BMW X4 2023 for sale in San Diego, California is 22,713. Based on the average mileage of 22,713 for used 2023 BMW X4 for sale in San Diego, CA and using an average vehicle condition rating, which means the vehicle may have a few mechanical and/or cosmetic problems and may require a considerable amount of reconditioning, we appraise the average trade-in value of a used BMW X4 2023 in San Diego, California to be $43,144.

Filters
Skip to Results

Applied Filters4Active

Select Buying Experience

Location

Search radius200 miles
Search radius

Make & Model

Year

New / Used

Price & Payments

Price Rating

Body Type

Trim

Mileage

Accidents & History

Engine & Drivetrain

Exterior Color

Interior Color

Total Seating

Edmunds Review

Features

Options & Packages

MPG

Listing Details


* Delivery of any kind does not apply to Alaska and Hawaii. Contact the dealer for delivery details, restrictions and costs.