Your Privacy

By accessing this website, you acknowledge that Edmunds and its third-party business partners may use cookies, pixels, and similar technologies to collect information about you and your interactions with the website as described in our Privacy Statement; and you agree that your use of the website is subject to our Visitor Agreement.
Skip to main content
Skip to Filters
981 listings
    • 15,882 miles
    • No accidents, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • Autobahn BMW (276 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Fort Worth, TX / 276 miles away from Midland, TX

    Certified. Bernina Gray Amber Effect Metallic 2022 BMW 5 Series 530i M-Sport + Massage Ventilated Seats + H/K Sound + Nappa Interior RWD 8-Speed Autom...

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH05NWX80379
    Stock: SCU07611A
    Certified Pre-Owned: Yes
    Listed since: 05-08-2025

    • 37,063 miles
    • No accidents, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • Certified Autoplex (307 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Farmers Branch, TX / 307 miles away from Midland, TX

    Priced below KBB Fair Purchase Price! CARFAX One-Owner. Clean CARFAX.Cognac Artificial Leather.2022 BMW 5 Series 4D Sedan Black Sapphire Metallic ...

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH07NWX58593
    Stock: NWX58593
    Certified Pre-Owned: No
    Listed since: 05-19-2025

    • 39,468 miles
    • No accidents, 1 owner, rental vehicle
    • 27 City / 35 Hwy MPG
    • Autos of Dallas - Plano (312 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 312 miles away from Midland, TX

    Sport Line, Premium Pkg, Navigation, Back-Up Camera, Sun Roof, Heated Seats, Parktronic, Keyless Go, 19" Wheels, Blind Spot Monitor, Heads-Up Display,...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ0XRCP84657
    Stock: P84657
    Certified Pre-Owned: No
    Listed since: 05-13-2025

  • New Listing
    • 15,761 miles
    • 27 City / 35 Hwy MPG
    • ABZ Motors (418 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Houston, TX / 418 miles away from Midland, TX

    Recent Arrival!LoJack.2024 BMW 5 Series 530i Gray Automatic 2.0L 4-CylinderConnected Package Pro, Premium Package (BMW Curved Display w/HUD, Fu...

    AutoCheck Vehicle History Summary Unavailable.

    Features and Specs:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ09RCR80203
    Stock: RCR80203
    Certified Pre-Owned: No
    Listed since: 06-02-2025

    • 60,727 miles
    • No accidents, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • Autos of Dallas - Plano (312 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 312 miles away from Midland, TX

    Bluestone Metallic 2022 BMW 5 Series 530i RWD 8-Speed Automatic Sport 2.0L 4-Cylinder Black Artificial Leather.25/33 City/Highway MPGVisit www.Au...

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH03NCJ58848
    Stock: J58848
    Certified Pre-Owned: No
    Listed since: 04-04-2025

    • 35,800 miles
    • No accidents, 1 owner, personal use
    • 25 City / 32 Hwy MPG
    • Go Luxury Auto Group (307 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Dallas, TX / 307 miles away from Midland, TX

    Clean CARFAX. CARFAX One-Owner.2022 BMW 5 Series 540i RWD 4D Sedan 3.0L I6 Turbocharged DOHC 24V LEV3-ULEV70 Dark Graphite Metallic 8-Speed Automati...

    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:

    27 Combined MPG (25 City/32 Highway)

    Listing Information:

    VIN: WBA53BJ07NWX45403
    Stock: A45403
    Certified Pre-Owned: No
    Listed since: 04-10-2025

    • 24,401 miles
    • No accidents, 1 owner, personal use only
    • 27 City / 35 Hwy MPG
    • Moritz Kia Hurst (285 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Hurst, TX / 285 miles away from Midland, TX

    SUPER CLEAN 2024 BMW 5 SERIES 530i!!! The Moritz Promise LIFETIME POWERTRAIN PROTECTION Plan See dealer for details, Clean CarFax, Clean One Owner Car...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ01RCS11985
    Stock: A7300
    Certified Pre-Owned: No
    Listed since: 05-09-2025

  • New Listing
    • 36,849 miles
    • No accidents, 2 owners, rental vehicle
    • 23 City / 32 Hwy MPG
    • Carvana - San Antonio (278 mi away)
    • Home delivery*
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in San Antonio, TX / 278 miles away from Midland, TX

    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: No

    Features and Specs:

    26 Combined MPG (23 City/32 Highway)

    Listing Information:

    VIN: WBA13BJ01NWX74913
    Stock: 2003685039
    Certified Pre-Owned: No
    Listed since: 04-30-2025

    • 31,266 miles
    • No accidents, 1 owner, personal use
    • 25 City / 32 Hwy MPG
    • Go Luxury Auto Group (307 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Dallas, TX / 307 miles away from Midland, TX

    Recent Arrival!Odometer is 2582 miles below market average!Clean CARFAX. CARFAX One-Owner.2022 BMW 5 Series 540i RWD 4D Sedan 3.0L I6 Turbocharged...

    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:

    27 Combined MPG (25 City/32 Highway)

    Listing Information:

    VIN: WBA53BJ07NWX72164
    Stock: A72164
    Certified Pre-Owned: No
    Listed since: 05-23-2025

    • 33,076 miles
    • No accidents, personal use only
    • 26 City / 33 Hwy MPG
    • BMW of the Woodlands (409 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in The Woodlands, TX / 409 miles away from Midland, TX

    Sun/MoonroofNavigation SystemLane Keeping AssistKeyless StartThis vehicle includes a Money-Back Guarantee* and passed our precise inspection pro...

    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:

    28 Combined MPG (26 City/33 Highway)

    Listing Information:

    VIN: WBA63FJ08RCS43373
    Stock: RCS43373
    Certified Pre-Owned: No
    Listed since: 03-24-2025

    • 40,292 miles
    • 1 accident, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • Autos of Dallas - Plano (312 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 312 miles away from Midland, TX

    Sport Line, Premium Pkg, Navigation, Back-Up Camera, Sun Roof, Heated Seats, Parktronic, Keyless Go, 18" Wheels, Blind Spot Monitor, Heads-Up Display,...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: No

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH05NWX76526
    Stock: X76526
    Certified Pre-Owned: No
    Listed since: 11-25-2024

  • Price Drop
    $54,998
    fair price
    $951 above market
    • 13,376 miles
    • No accidents, personal use only
    • 27 City / 35 Hwy MPG
    • BMW of Wichita (476 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Wichita, KS / 476 miles away from Midland, TX

    2024 BMW 530i xDrive, BMW Certified Pre-Owned. Located at BMW of Wichita. MSRP $67,695. Oxide Gray Metallic with Black interior. BMW Certified Pre-Own...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA53FJ05RCP86093
    Stock: 53AF631X
    Certified Pre-Owned: Yes
    Listed since: 05-03-2025

    • 49,711 miles
    • 1 accident, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • Autos of Dallas - Plano (312 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Plano, TX / 312 miles away from Midland, TX

    Sport Line, Premium Pkg, Navigation, Back-Up Camera, Sun Roof, Heated Seats, Parktronic, Keyless Go, 19" Wheels, Blind Spot Monitor, Lane Keeping Assi...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: No

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH0XNCJ48530
    Stock: J48530
    Certified Pre-Owned: No
    Listed since: 12-05-2024

    • 22,795 miles
    • No accidents, 1 owner, personal use
    • 23 City / 32 Hwy MPG
    • Go Luxury Auto Group (307 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 307 miles away from Midland, TX

    Recent Arrival!Priced below KBB Fair Purchase Price! Odometer is 10941 miles below market average!Clean CARFAX. CARFAX One-Owner.2022 BMW 5 Series...

    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:

    26 Combined MPG (23 City/32 Highway)

    Listing Information:

    VIN: WBA13BJ0XNCJ41473
    Stock: A41473
    Certified Pre-Owned: No
    Listed since: 05-28-2025

    • 25,427 miles
    • No accidents, 1 owner, rental vehicle
    • 27 City / 35 Hwy MPG
    • Go Luxury Auto Group (307 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in Dallas, TX / 307 miles away from Midland, TX

    Recent Arrival!Priced below KBB Fair Purchase Price!Clean CARFAX. CARFAX One-Owner.2024 BMW 5 Series 530i xDrive AWD 4D Sedan 2.0L 4-Cylinder Dark...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA53FJ00RCS11660
    Stock: A11660
    Certified Pre-Owned: No
    Listed since: 05-22-2025

    • 13,127 miles
    • No accidents, personal use only
    • 27 City / 35 Hwy MPG
    • BMW of San Antonio (266 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    Close

    Located in San Antonio, TX / 266 miles away from Midland, TX

    Certified. 2024 BMW 5 Series 530i xDrive Cape York Green Metallic New Price! This BMW is being offered for sale and was used as a Demo/Service Loan 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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA53FJ01RCP81263
    Stock: RCP81263R
    Certified Pre-Owned: Yes
    Listed since: 01-15-2025

    • 13,790 miles
    • No accidents, personal use only
    • 27 City / 35 Hwy MPG
    • BMW of San Antonio (266 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in San Antonio, TX / 266 miles away from Midland, TX

    Certified. 2024 BMW 5 Series 530i Alpine White New Price! This BMW is being offered for sale and was used as a Demo/Service Loan Car., Espresso Brown ...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ00RCR93048
    Stock: RCR93048R
    Certified Pre-Owned: Yes
    Listed since: 03-10-2025

    • 25,656 miles
    • No accidents, 1 owner, personal use
    • 17 City / 25 Hwy MPG
    • BMW of Dallas (307 mi away)
    • AWD/4WD
    • Back-up camera
    • Bluetooth
    • Navigation
    • Leather Seats
    Close

    Located in Dallas, TX / 307 miles away from Midland, TX

    Driving Assistance Professional PackageMocha; Nappa Leather UpholsteryPremium PackageWheels: 20" X 8" Fr & 20" X 9" Rr M Double-SpokeSun/Moonroof...

    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:

    20 Combined MPG (17 City/25 Highway)

    Listing Information:

    VIN: WBA13BK04NCK99838
    Stock: NCK99838
    Certified Pre-Owned: Yes
    Listed since: 05-01-2025

    • 36,862 miles
    • No accidents, 1 owner, rental vehicle
    • 27 City / 35 Hwy MPG
    • EchoPark Automotive Houston (North Freeway) (419 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Houston, TX / 419 miles away from Midland, TX

    At EchoPark, it’s all about offering you options for a happy experience. We have thousands of new-to-you makes and models that range from sedans to tr...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ05RCR42189
    Stock: RRCR42189
    Certified Pre-Owned: No
    Listed since: 04-15-2025

  • New Listing
    • 17,315 miles
    • No accidents, 1 owner, personal use only
    • 27 City / 35 Hwy MPG
    • Big Star Ford (431 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in Manvel, TX / 431 miles away from Midland, TX

    CARFAX One-Owner. Big Star Ford is very proud to offer this gorgeous 2024 BMW 5 Series. Cape York Green Metallic 530i RWDRecent Arrival! Priced be...

    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:

    30 Combined MPG (27 City/35 Highway)

    Listing Information:

    VIN: WBA43FJ0XRCR18650
    Stock: TCR18650
    Certified Pre-Owned: No
    Listed since: 05-29-2025

    • 31,810 miles
    • 1 accident, 1 owner, personal use
    • 25 City / 33 Hwy MPG
    • BMW of San Antonio (266 mi away)
    • Back-up camera
    • Bluetooth
    • Navigation
    • Sunroof/Moonroof
    • Keyless Entry/Start
    Close

    Located in San Antonio, TX / 266 miles away from Midland, TX

    Certified. 2022 BMW 5 Series 530i CARFAX One-Owner. Carbon Black Metallic New Price! Cognac Premium Synthetic, Aerodynamic Kit, Ceramic Controls, Conn...

    AutoCheck Vehicle History Summary

    Accident Free Vehicle: No

    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:

    28 Combined MPG (25 City/33 Highway)

    Listing Information:

    VIN: WBA53BH05NWX54235
    Stock: NWX54235P
    Certified Pre-Owned: Yes
    Listed since: 04-23-2025

Showing 64 - 84 out of 981 listings

Consumer Reviews for the BMW 5 Series

Read recent reviews for the BMW 5 Series
Overall Consumer Rating
4.5 out of 5 stars33 Reviews
Write a vehicle reviewSee all 33 reviews
  • 5 star
    (73%)
  • 4 star
    (12%)
  • 3 star
    (9%)
  • 2 star
    (3%)
  • 1 star
    (3%)
5 out of 5 stars

Amazing Quality and Powertrain

Jeff, 03/22/2021
2021 BMW 5 Series 540i 4dr Sedan (3.0L 6cyl Turbo gas/electric mild hybrid 8A)
Definitely not a sporty car. If you want that, get a 3-series. That's not to say you can't have fun it it, it has a lot of power and has a great engine. But it is first and foremost a luxury cruiser geared towards comfort. If that is what you are looking for, this is the best in the business.
Report abuse

Used 2022 BMW 5 Series in Midland, TX Values

Estimated values
2022 BMW 5 Series 530i 4dr Sedan (2.0L 4cyl Turbo 8A) with no options
ConditionTrade-InPrivate PartyDealer Retail
Outstanding$29,168$31,335$33,606
Clean$28,661$30,724$32,881
Average$27,814$29,706$31,674
Rough$26,715$28,382$30,104

The average list price of a used 2022 BMW 5 Series in Midland, Texas is $41,611. The average mileage on a used BMW 5 Series 2022 for sale in Midland, Texas is 29,545. Based on the average mileage of 29,545 for used 2022 BMW 5 Series for sale in Midland, TX 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 5 Series 2022 in Midland, Texas to be $27,814.

Filters
Skip to Results

Applied Filters4Active

Select Buying Experience

Location

Search radius500 miles
Search radius

Make & Model

Year

New / Used

Price & Payments

Price Rating

Trim

Mileage

Accidents & History

EV Details

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.