top macbooks for data science
AIThis post was created with the assistance of artificial intelligence (AI).

For a MacBook Pro for data science and AI, I’d choose the 16-inch M5 Pro with 64GB memory and a 1TB SSD as the best overall balance for local analysis, development, and multitasking. The 14-inch M5 Pro with 48GB memory is a stronger fit if portability matters, while the M5 Max with 128GB memory suits workloads that benefit from more GPU capacity and larger local models. The main tradeoff is between memory and GPU headroom, portability, and storage—not just chip tier. A lower-tier chip with enough unified memory may serve everyday notebooks better than a more powerful model with less room for data and concurrent tools. Read on for the full comparison and help matching a configuration to your workload.

Before you orderOffer from Amazon

Get home appliances delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.
10
compared
1
brands
3
chips
40-core
max gpu
Which macbook pro for data science and ai should you buy?
★ Top Pick
Apple MacBook Pro 16.2-inch wi
Best Overall for Larger Local Workloads
64GB unified memory offers more headroom for concurrent notebooks, containers, and datasets than the 24GB M5 Pro configurations.
See on Amazon →
Analysts and data science students who want a large-screen MacBook Pro for Python, SQL, visualization, and moderate local workloads.
Apple 16.2-inch MacBook Pro wi
M5 Pro 18-core CPU and 20-core GPU provide a strong platform for general development and supported acceleration.
View on Amazon →
AI developers and researchers who need substantial unified memory, GPU capacity, and local storage for larger models and demanding experiments.
Apple MacBook Pro 16.2-inch wi
128GB unified memory provides the most headroom in this batch for large local workloads.
View on Amazon →
Mobile data scientists who split time between office, classroom, and travel and need an M5 Pro system for coding and moderate local analysis.
Apple 2026 MacBook Pro Laptop
14.2-inch size is more travel-friendly than the 16.2-inch M5 Pro models.
View on Amazon →
Students and new data analysts learning Python, SQL, and visualization who use cloud compute or remote machines for heavier workloads.
Apple 14.2-inch MacBook Pro wi
M5 chip supports everyday programming, data preparation, and visualization tasks.
View on Amazon →
GPU — compared
Apple MacBook Pro 16.2-inch wi20-core
Apple 16.2-inch MacBook Pro wi20-core
Apple MacBook Pro 16.2-inch wi40-core
Apple 2026 MacBook Pro Laptop 16-core
Apple 14.2-inch MacBook Pro wi10-core
Apple 2026 MacBook Pro Laptop 20-core
Apple MacBook Pro 16.2-inch wi40-core
Apple MacBook Pro 16-inch with20-core
Apple MacBook Pro 14.2-inch wi16-core
Apple 14.2-inch MacBook Pro wi10-core
Pros & cons at a glance
Apple MacBook Pro 16.2-inch wi
✓ 64GB unified memory offers more headroom for concurrent notebooks, containers, and datasets than the 24GB M5 Pro configurations.
✗ Larger 16.2-inch chassis is less convenient to carry than the 14.2-inch models.
Apple 16.2-inch MacBook Pro wi
✓ M5 Pro 18-core CPU and 20-core GPU provide a strong platform for general development and supported acceleration.
✗ 24GB memory can become restrictive with large datasets, multiple containers, or local AI models.
Apple MacBook Pro 16.2-inch wi
✓ 128GB unified memory provides the most headroom in this batch for large local workloads.
✗ Its capabilities may be underused by buyers whose training and inference run mainly in the cloud.
Apple 2026 MacBook Pro Laptop
✓ 14.2-inch size is more travel-friendly than the 16.2-inch M5 Pro models.
✗ 24GB memory is less suited to large in-memory datasets and local AI models than the 64GB or 128GB options.
Apple 14.2-inch MacBook Pro wi
✓ M5 chip supports everyday programming, data preparation, and visualization tasks.
✗ 16GB unified memory is a constraint for large datasets, multiple containers, and local AI experimentation.
Apple 2026 MacBook Pro Laptop
✓ 48GB unified memory supports heavier multitasking and larger working datasets than 24GB configurations.
✗ The 16.2-inch form factor is less portable than the 14.2-inch MacBook Pro models.
Apple MacBook Pro 16.2-inch wi
✓ 40-core GPU is the strongest listed option here for GPU-heavy local workloads.
✗ Its high-capacity hardware is excessive for many data analysis and cloud-training workflows.
Apple MacBook Pro 16-inch with
✓ 64GB unified memory offers additional working space over the 48GB M5 Pro configuration.
✗ The 1TB SSD may be limiting for large local datasets and model libraries.
Apple MacBook Pro 14.2-inch wi
✓ 48GB unified memory supports demanding analysis and multitasking.
✗ The listing conflicts on display size and CPU core count, so the exact configuration is uncertain.
Apple 14.2-inch MacBook Pro wi
✓ M5 10-core CPU and GPU provide a capable base for coding and everyday analysis.
✗ 16GB unified memory is restrictive for larger datasets and heavier local AI workloads.

Complete the kit

[Genuine] Waterdrop PF-01A Water Filter Replacement for W...
[Genuine] Waterdrop PF-01A Water Filter Replacement for W…
Add to your setup →
AprilAire 216 Replacement Filter for AprilAire Whole Hous...
AprilAire 216 Replacement Filter for AprilAire Whole Hous…
Add to your setup →
Amazon Basics Enhanced Water Filter, Brita Filter Replace...
Amazon Basics Enhanced Water Filter, Brita Filter Replace…
Add to your setup →

Key Takeaways

  • The 16-inch M5 Pro with 64GB memory and 1TB SSD is the most balanced configuration here for users who want substantial memory without stepping up to the M5 Max.
  • The M5 Max models pair 128GB memory with a 40-core GPU; the 2TB and 4TB versions differ mainly in local storage capacity, so choose based on datasets and project files rather than assuming extra SSD space makes computation faster.
  • The 14-inch M5 Pro with 48GB memory is the portability pick for people who need more working room than the 24GB options but prefer a smaller laptop.
  • The 14-inch base M5 configurations have 16GB memory, making them better suited to learning, cloud-based work, and lighter analysis than demanding local AI workloads.
  • Within the M5 Pro lineup, memory varies from 24GB to 64GB; the comparison shows why checking the full configuration matters as much as checking the processor name.
2
Apple 16.2-inch MacBook Pro wi
Best for General Data Science
1
Apple MacBook Pro 16.2-inch wi
Best Overall for Larger Local Workloads
3
Apple MacBook Pro 16.2-inch wi
Best for Local AI and GPU-Heavy Work

Our Top Macbook Pro For Data Science And Ai Picks

Apple MacBook Pro 16.2-inch with M5 Pro, 18-core CPU, 20-core GPU, 64GB Memory, 1TB SSD, Space BlackApple MacBook Pro 16.2-inch with M5 Pro, 18-core CPU, 20-core GPU, 64GB Memory, 1TB SSD, Space BlackBest Overall for Larger Local WorkloadsChip: Apple M5 ProCPU: 18-coreGPU: 20-coreVIEW ON AMAZONSee Our Full Breakdown
Apple 16.2-inch MacBook Pro with M5 Pro, 18-core CPU, 20-core GPU, 24GB memory, 1TB SSD, Wi-Fi 7, Space BlackApple 16.2-inch MacBook Pro with M5 Pro, 18-core CPU, 20-core GPU, 24GB memory, 1TB SSD, Wi-Fi 7, Space BlackBest for General Data ScienceChip: Apple M5 ProCPU: 18-coreGPU: 20-coreVIEW ON AMAZONSee Our Full Breakdown
Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 2TB SSD, Space BlackApple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 2TB SSD, Space BlackBest for Local AI and GPU-Heavy WorkChip: Apple M5 MaxCPU: 18-coreGPU: 40-coreVIEW ON AMAZONSee Our Full Breakdown
Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 14.2-inch Liquid Retina XDR Display, 24GB RAM, 1TB SSD, Wi-Fi 7, Space BlackApple 2026 MacBook Pro Laptop with M5 Pro Chip, 14.2-inch Liquid Retina XDR Display, 24GB RAM, 1TB SSD, Wi-Fi 7, Space BlackBest Compact M5 ProProcessor: Apple M5 ProCPU: 15-coreGPU: 16-coreVIEW ON AMAZONSee Our Full Breakdown
Apple 14.2-inch MacBook Pro with M5 chip, 10-core CPU and GPU, 16GB memory, 512GB SSD, Space BlackApple 14.2-inch MacBook Pro with M5 chip, 10-core CPU and GPU, 16GB memory, 512GB SSD, Space BlackBest Entry Point for Learning and Cloud-Based AIChip: Apple M5CPU: 10-coreGPU: 10-coreVIEW ON AMAZONSee Our Full Breakdown
Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 16.2-inch Liquid Retina XDR Display, 48GB RAM, 1TB SSD, Space BlackApple 2026 MacBook Pro Laptop with M5 Pro Chip, 16.2-inch Liquid Retina XDR Display, 48GB RAM, 1TB SSD, Space BlackBest for Large-Screen Data WorkChip: Apple M5 ProCPU: 18-coreGPU: 20-coreVIEW ON AMAZONSee Our Full Breakdown
Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 4TB SSD, Space BlackApple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 4TB SSD, Space BlackBest for Local AI and GPU-Heavy WorkChip: Apple M5 MaxCPU: 18-coreGPU: 40-coreVIEW ON AMAZONSee Our Full Breakdown
Apple MacBook Pro 16-inch with M5 Pro, 18-Core CPU, 20-Core GPU, 64GB Memory, 1TB SSDApple MacBook Pro 16-inch with M5 Pro, 18-Core CPU, 20-Core GPU, 64GB Memory, 1TB SSDBest M5 Pro Memory BalanceChip: Apple M5 ProCPU: 18-coreGPU: 20-coreVIEW ON AMAZONSee Our Full Breakdown
Apple MacBook Pro 14.2-inch with M5 Pro, 15-core CPU, 16-core GPU, 48GB Memory, 1TB SSD, Space BlackApple MacBook Pro 14.2-inch with M5 Pro, 15-core CPU, 16-core GPU, 48GB Memory, 1TB SSD, Space BlackBest Compact Pro ConfigurationProcessor: Apple M5 Pro, 15-core CPU (listing also describes an 18-core CPU)GPU: 16-coreMemory: 48GB unified memoryVIEW ON AMAZONSee Our Full Breakdown
Apple 14.2-inch MacBook Pro with M5 Chip, 10-Core CPU and GPU, 16GB Memory, 1TB SSD, Space BlackApple 14.2-inch MacBook Pro with M5 Chip, 10-Core CPU and GPU, 16GB Memory, 1TB SSD, Space BlackBest for Entry-Level Data ScienceChip: Apple M5CPU: 10-coreGPU: 10-coreVIEW ON AMAZONSee Our Full Breakdown
Specs at a glance
macbook pro for data science and aiGPUDisplayStorageCPU
Apple MacBook Pro 16.2-inch wi20-core16.2-inch Liquid Retina XDR1TB SSD18-core
Apple 16.2-inch MacBook Pro wi20-core16.2-inch Liquid Retina XDR1TB SSD18-core
Apple MacBook Pro 16.2-inch wi40-core16.2-inch Liquid Retina XDR2TB SSD18-core
Apple 2026 MacBook Pro Laptop 16-core14.2-inch Liquid Retina XDR1TB SSD15-core
Apple 14.2-inch MacBook Pro wi10-core14.2-inch Liquid Retina XDR512GB SSD10-core
Apple 2026 MacBook Pro Laptop 20-core16.2-inch Liquid Retina XDR1TB SSD18-core
Apple MacBook Pro 16.2-inch wi40-core16.2-inch Liquid Retina XDR4TB SSD18-core
Apple MacBook Pro 16-inch with20-core16-inch standard display1TB SSD18-core
Apple MacBook Pro 14.2-inch wi16-core14.2-inch Liquid Retina XDR (listing also describes a 16-inch model)1TB SSD—
Apple 14.2-inch MacBook Pro wi10-core14.2-inch Liquid Retina XDR1TB SSD10-core

More Details on Our Top Picks

  1. Apple MacBook Pro 16.2-inch with M5 Pro, 18-core CPU, 20-core GPU, 64GB Memory, 1TB SSD, Space Black

    Apple MacBook Pro 16.2-inch with M5 Pro, 18-core CPU, 20-core GPU, 64GB Memory, 1TB SSD, Space Black

    Best Overall for Larger Local Workloads

    View on Amazon

    I’d put this configuration near the top for data scientists who need a large working set without stepping up to the M5 Max. Its 64GB unified memory gives notebooks, containers, and sizable datasets more room than the 24GB M5 Pro models, while the 20-core GPU can help with supported GPU-accelerated workloads. Compared with the 128GB M5 Max MacBook Pro, it has half the listed memory and a smaller GPU, so it is a more restrained choice for large local AI models, but it avoids buying capacity many workflows may not use. The 16.2-inch XDR display is useful for keeping code, charts, and documentation visible together. The tradeoff is portability: it is larger than the 14.2-inch M5 Pro option, and its 1TB SSD can fill quickly if you keep datasets and model files locally.

    Pros:
    • 64GB unified memory offers more headroom for concurrent notebooks, containers, and datasets than the 24GB M5 Pro configurations.
    • 20-core GPU suits workflows that can use Apple silicon GPU acceleration.
    • 16.2-inch Liquid Retina XDR display provides a broad workspace for code and analysis.
    • Thunderbolt 5, HDMI, and SDXC reduce dependence on dongles for common connections.
    Cons:
    • Larger 16.2-inch chassis is less convenient to carry than the 14.2-inch models.
    • 1TB SSD may constrain users who store multiple datasets and model checkpoints locally.
    • M5 Pro has less listed GPU capacity and memory than the 128GB M5 Max configuration for heavier local AI work.

    Best for: Data scientists who regularly run several development tools and medium-to-large datasets locally and prefer a roomy display over a smaller travel setup.

    Not ideal for: Researchers loading very large models into memory or keeping extensive datasets on the laptop; the 128GB M5 Max or a larger-storage configuration is a better fit.

    • Chip:Apple M5 Pro
    • CPU:18-core
    • GPU:20-core
    • Display:16.2-inch Liquid Retina XDR
    • Memory:64GB
    • Storage:1TB SSD
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
    • Wireless:Wi-Fi 7, Bluetooth 6
    Our verdict
    “Choose this M5 Pro when you want substantial memory and a large screen for local data work without moving to the more specialized 128GB M5 Max.”
  2. Apple 16.2-inch MacBook Pro with M5 Pro, 18-core CPU, 20-core GPU, 24GB memory, 1TB SSD, Wi-Fi 7, Space Black

    Apple 16.2-inch MacBook Pro with M5 Pro, 18-core CPU, 20-core GPU, 24GB memory, 1TB SSD, Wi-Fi 7, Space Black

    Best for General Data Science

    View on Amazon

    This is the sensible large-screen M5 Pro choice for data science work that does not routinely push memory limits. Its 24GB unified memory and 1TB SSD provide a capable base for coding, visualization, and moderate datasets, while the 18-core CPU and 20-core GPU give it the same listed processor and graphics core counts as the 64GB M5 Pro model. The difference is memory headroom: compared with that 64GB configuration, this one is less suited to large in-memory datasets, multiple heavy containers, or local model experimentation. Its 16.2-inch XDR display and broad port selection make it convenient as a primary workstation, but the larger body is a poor match for frequent travel. I’d pick it over the 14.2-inch M5 Pro only if screen space matters more than compactness.

    Pros:
    • M5 Pro 18-core CPU and 20-core GPU provide a strong platform for general development and supported acceleration.
    • 1TB SSD leaves more room for active projects than the 512GB base M5 model.
    • 16.2-inch Liquid Retina XDR display gives code, plots, and notebooks ample screen area.
    • Thunderbolt 5, HDMI, and SDXC support a flexible desk setup.
    Cons:
    • 24GB memory can become restrictive with large datasets, multiple containers, or local AI models.
    • The 16.2-inch size is less portable than the 14.2-inch M5 Pro.
    • Compared with the 64GB M5 Pro version, it offers less memory headroom despite matching the listed CPU and GPU core counts.

    Best for: Analysts and data science students who want a large-screen MacBook Pro for Python, SQL, visualization, and moderate local workloads.

    Not ideal for: AI practitioners running large local models or several memory-heavy environments; the 64GB M5 Pro or 128GB M5 Max offers more capacity.

    • Chip:Apple M5 Pro
    • CPU:18-core
    • GPU:20-core
    • Display:16.2-inch Liquid Retina XDR
    • Unified memory:24GB
    • Storage:1TB SSD
    • Wireless:Wi-Fi 7, Bluetooth 6
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC card slot, HDMI, headphone jack
    Our verdict
    “Pick this model for general data science on a large display, but step up to 64GB if your datasets or local workloads are memory intensive.”
  3. Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 2TB SSD, Space Black

    Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 2TB SSD, Space Black

    Best for Local AI and GPU-Heavy Work

    View on Amazon

    For buyers who specifically want to run demanding AI and GPU-accelerated work on the laptop, this is the most capable configuration in this batch. The 40-core GPU and 128GB unified memory give it substantially more listed graphics capacity and memory than the M5 Pro models, including the 64GB version. That headroom can make larger local models and memory-intensive workflows more practical, though actual performance depends on software support and workload. The 2TB SSD also gives datasets and model files more breathing room than the 1TB options. I would not rank it as the default choice for every data scientist: compared with the 64GB M5 Pro, it is aimed at users who can use the extra resources, and its 16.2-inch chassis is still a large machine to carry. For lighter work, the added capacity may go unused.

    Pros:
    • 128GB unified memory provides the most headroom in this batch for large local workloads.
    • 40-core GPU is better suited than the M5 Pro GPUs to supported graphics-intensive and AI tasks.
    • 2TB SSD accommodates more local datasets, checkpoints, and project files than the 1TB configurations.
    • Three Thunderbolt 5 ports, HDMI, and SDXC support a workstation-style setup.
    Cons:
    • Its capabilities may be underused by buyers whose training and inference run mainly in the cloud.
    • The 16.2-inch form factor is less convenient for frequent commuting than the 14.2-inch models.
    • Still offers less listed storage than the 4TB M5 Max configuration in the wider roundup.

    Best for: AI developers and researchers who need substantial unified memory, GPU capacity, and local storage for larger models and demanding experiments.

    Not ideal for: Students and analysts focused on coding, cloud notebooks, or moderate datasets; the M5 Pro configurations offer a more proportionate setup for those workloads.

    • Chip:Apple M5 Max
    • CPU:18-core
    • GPU:40-core
    • Display:16.2-inch Liquid Retina XDR
    • Unified memory:128GB
    • Storage:2TB SSD
    • Peak display brightness:1600 nits
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC card slot, HDMI, headphone jack
    Our verdict
    “Choose this M5 Max when local AI workloads can use its 128GB memory and 40-core GPU; otherwise, an M5 Pro is a more fitting data science machine.”
  4. Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 14.2-inch Liquid Retina XDR Display, 24GB RAM, 1TB SSD, Wi-Fi 7, Space Black

    Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 14.2-inch Liquid Retina XDR Display, 24GB RAM, 1TB SSD, Wi-Fi 7, Space Black

    Best Compact M5 Pro

    View on Amazon

    This 14.2-inch M5 Pro is the better fit for data scientists who carry their laptop often but still want Pro-class ports and a capable chip. The 15-core CPU and 16-core GPU are a step below the 16-inch M5 Pro configurations’ listed 18-core CPU and 20-core GPU, while its 24GB unified memory matches the more affordable 16-inch M5 Pro option. That makes it a compact workstation for development, analysis, and moderate AI experimentation, rather than a substitute for the 64GB model when large datasets or local models dominate. The 1TB SSD is useful for project files, and Thunderbolt 5, HDMI, and SDXC make desk connections straightforward. Compared with the 16.2-inch M5 Pro, you trade screen area and some listed compute cores for a smaller footprint.

    Pros:
    • 14.2-inch size is more travel-friendly than the 16.2-inch M5 Pro models.
    • M5 Pro chip and 24GB unified memory support development and moderate data workloads.
    • 1TB SSD offers useful local project capacity.
    • Thunderbolt 5, HDMI, SDXC, and MagSafe 3 cover common workstation connections.
    Cons:
    • 24GB memory is less suited to large in-memory datasets and local AI models than the 64GB or 128GB options.
    • Its 15-core CPU and 16-core GPU have fewer listed cores than the 16-inch M5 Pro configurations.
    • The smaller display provides less room for simultaneous code, plots, and documentation.

    Best for: Mobile data scientists who split time between office, classroom, and travel and need an M5 Pro system for coding and moderate local analysis.

    Not ideal for: Users who keep large models and datasets in memory or want the broadest coding workspace; the 64GB 16.2-inch M5 Pro is a stronger match.

    • Processor:Apple M5 Pro
    • CPU:15-core
    • GPU:16-core
    • Display:14.2-inch Liquid Retina XDR
    • Unified memory:24GB
    • Storage:1TB SSD
    • Connectivity:Wi-Fi 7, Bluetooth 6
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
    Our verdict
    “Choose this compact M5 Pro if portability matters more than the extra screen space and compute cores of the 16-inch models.”
  5. Apple 14.2-inch MacBook Pro with M5 chip, 10-core CPU and GPU, 16GB memory, 512GB SSD, Space Black

    Apple 14.2-inch MacBook Pro with M5 chip, 10-core CPU and GPU, 16GB memory, 512GB SSD, Space Black

    Best Entry Point for Learning and Cloud-Based AI

    View on Amazon

    This base M5 MacBook Pro makes the most sense for students and early-career analysts whose heavier computing runs on remote servers or cloud notebooks. Its 10-core CPU and GPU can handle programming, data cleaning, and visualization, while the 14.2-inch XDR display keeps the machine compact enough for daily commuting. The main limit for this roundup is 16GB unified memory: compared with the 24GB M5 Pro models, it leaves less room for large datasets, multiple development environments, and local model work. Its 512GB SSD is also the smallest listed here, so keeping datasets and checkpoints onboard will require more careful file management. The Thunderbolt 4 ports are a generation behind the M5 Pro models’ Thunderbolt 5, but HDMI and SDXC still help at a desk. I’d treat it as a learning and cloud-work option, not a local AI workstation.

    Pros:
    • M5 chip supports everyday programming, data preparation, and visualization tasks.
    • 14.2-inch Liquid Retina XDR display keeps the system more portable than the 16.2-inch models.
    • HDMI, SDXC, MagSafe 3, and three Thunderbolt 4 ports support common peripherals.
    • Supports up to two external displays for a larger desk workspace.
    Cons:
    • 16GB unified memory is a constraint for large datasets, multiple containers, and local AI experimentation.
    • 512GB SSD offers less room for datasets and model files than the 1TB and 2TB configurations.
    • Thunderbolt 4 is a generation behind the Thunderbolt 5 ports on the M5 Pro models.

    Best for: Students and new data analysts learning Python, SQL, and visualization who use cloud compute or remote machines for heavier workloads.

    Not ideal for: Practitioners who need to run large datasets, several containers, or AI models locally; the 24GB M5 Pro models provide more memory and a stronger workload fit.

    • Chip:Apple M5
    • CPU:10-core
    • GPU:10-core
    • Display:14.2-inch Liquid Retina XDR
    • Unified memory:16GB
    • Storage:512GB SSD
    • Ports:Three Thunderbolt 4, MagSafe 3, SDXC card slot, HDMI, headphone jack
    • External displays:Supports up to two
    Our verdict
    “Choose this M5 for learning and cloud-based data work, but move to an M5 Pro with more memory if local AI or large datasets are part of your routine.”
  6. Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 16.2-inch Liquid Retina XDR Display, 48GB RAM, 1TB SSD, Space Black

    Apple 2026 MacBook Pro Laptop with M5 Pro Chip, 16.2-inch Liquid Retina XDR Display, 48GB RAM, 1TB SSD, Space Black

    Best for Large-Screen Data Work

    View on Amazon

    I’d choose this configuration for data scientists who want a roomy workspace and substantial memory without moving to the M5 Max tier. Its 18-core CPU, 20-core GPU, and 48GB unified memory suit multitasking across notebooks, development tools, and sizable datasets; the 16.2-inch XDR screen also gives charts and code more room than the 14.2-inch M5 Pro model. Compared with the M5 Max with 128GB memory, this one gives up GPU headroom and capacity for larger local models, but is a more measured fit for typical analysis and model development. The tradeoffs are the large chassis, which is less convenient to carry, and 1TB storage, which can fill quickly with datasets and model files. I’d also treat the all-day battery claim as a general listing statement, not a workload-specific runtime guarantee.

    Pros:
    • 48GB unified memory supports heavier multitasking and larger working datasets than 24GB configurations.
    • 16.2-inch Liquid Retina XDR display provides ample space for code, notebooks, and visualizations.
    • Thunderbolt 5, HDMI, and SDXC offer flexible connections for monitors and data workflows.
    • M5 Pro pairs an 18-core CPU with a 20-core GPU for mixed professional workloads.
    Cons:
    • The 16.2-inch form factor is less portable than the 14.2-inch MacBook Pro models.
    • 1TB SSD may constrain users who keep large datasets and model files locally.
    • It has less GPU capacity and memory than the M5 Max 128GB configuration.

    Best for: Data scientists who work at a desk or between offices, want a large display, and run several professional apps alongside medium-to-large local workloads.

    Not ideal for: Frequent travelers who prioritize a lighter laptop, or AI practitioners who need the M5 Max’s GPU resources and 128GB memory for especially large local models.

    • Chip:Apple M5 Pro
    • CPU:18-core
    • GPU:20-core
    • Display:16.2-inch Liquid Retina XDR
    • Unified memory:48GB
    • Storage:1TB SSD
    • Connectivity:Wi-Fi 7, Bluetooth 6, Thunderbolt 5, HDMI, SDXC, MagSafe 3
    • Camera:12MP Center Stage
    Our verdict
    “Choose this M5 Pro configuration if you want a large-screen work machine with 48GB memory, but step up to the M5 Max for more demanding local AI workloads.”
  7. Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 4TB SSD, Space Black

    Apple MacBook Pro 16.2-inch with M5 Max, 18-Core CPU, 40-Core GPU, 128GB Memory, 4TB SSD, Space Black

    Best for Local AI and GPU-Heavy Work

    View on Amazon

    This is the lineup’s clearest choice for buyers who want to run demanding AI and creative workloads locally: the 40-core GPU, 128GB unified memory, and 4TB SSD give it far more room for large models, datasets, and concurrent tools than the M5 Pro systems. Compared with the 16-inch M5 Pro with 48GB memory, the extra capacity is meaningful when a workload pushes beyond ordinary notebook analysis; it is less compelling if most training runs happen on cloud GPUs. The 16.2-inch XDR display and support for up to four external displays also suit a fixed, multi-screen workstation setup. That capability comes with a narrower audience: buyers pay in portability and may carry substantial unused headroom for routine coding. The listing gives no battery runtime or weight, so I would not select it based on travel convenience.

    Pros:
    • 40-core GPU is the strongest listed option here for GPU-heavy local workloads.
    • 128GB unified memory supports larger models and more demanding multitasking.
    • 4TB SSD offers substantial room for datasets, project files, and model assets.
    • Supports up to four external displays and includes Thunderbolt 5, HDMI, and SDXC.
    Cons:
    • Its high-capacity hardware is excessive for many data analysis and cloud-training workflows.
    • The 16.2-inch design is less convenient for frequent travel than the 14.2-inch options.
    • The listing does not specify battery runtime or product weight.

    Best for: Machine-learning engineers and data scientists who need high memory capacity, strong local GPU resources, and space for large datasets or models.

    Not ideal for: Students and analysts whose workloads are mostly cloud-based or standard notebook work; the M5 Pro models offer a more restrained fit for those tasks.

    • Chip:Apple M5 Max
    • CPU:18-core
    • GPU:40-core
    • Unified memory:128GB
    • Storage:4TB SSD
    • Display:16.2-inch Liquid Retina XDR
    • External display support:Up to four displays
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
    Our verdict
    “Pick this M5 Max when local GPU workloads and large models justify its 128GB memory and 4TB storage; otherwise, an M5 Pro configuration is a more fitting match.”
  8. Apple MacBook Pro 16-inch with M5 Pro, 18-Core CPU, 20-Core GPU, 64GB Memory, 1TB SSD

    Apple MacBook Pro 16-inch with M5 Pro, 18-Core CPU, 20-Core GPU, 64GB Memory, 1TB SSD

    Best M5 Pro Memory Balance

    View on Amazon

    I’d put this model ahead of the 48GB M5 Pro when memory capacity matters more than extra storage: its 64GB unified memory gives more breathing room for parallel notebooks, larger datasets, and memory-heavy development tools while retaining the same listed 18-core CPU and 20-core GPU class. Compared with the M5 Max 128GB model, it sacrifices GPU resources and half the memory, but avoids paying for capacity many M5 Pro users may not need. The 16-inch display is useful for code and visualizations, though this listing identifies it only as a standard display, so it does not provide the XDR brightness and contrast details listed for some alternatives. Storage remains at 1TB, which may require external drives for substantial datasets. The description lists an included 140W adapter and MagSafe cable, but gives fewer display and connectivity details than the other 16-inch options.

    Pros:
    • 64GB unified memory offers additional working space over the 48GB M5 Pro configuration.
    • 18-core CPU and 20-core GPU suit a broad range of development and analysis work.
    • 16-inch display gives more workspace than the compact 14.2-inch MacBook Pro models.
    • Includes a 140W USB-C power adapter and 6.5-foot USB-C to MagSafe 3 cable.
    Cons:
    • The 1TB SSD may be limiting for large local datasets and model libraries.
    • The listing calls the display standard and does not provide XDR brightness or contrast specifications.
    • It has less GPU capacity and memory than the M5 Max 128GB model.

    Best for: Data scientists who need more than 48GB of memory for local analysis or multitasking but do not require the M5 Max’s 40-core GPU.

    Not ideal for: AI developers who need maximum GPU capacity, or buyers who want clearly specified XDR display details and extensive listed port information.

    • Chip:Apple M5 Pro
    • CPU:18-core
    • GPU:20-core
    • Unified memory:64GB
    • Storage:1TB SSD
    • Display:16-inch standard display
    • Included adapter:140W USB-C power adapter
    • Included cable:6.5-foot USB-C to MagSafe 3 cable
    Our verdict
    “Choose this model if 64GB memory is your priority and M5 Pro performance is sufficient, but look to the M5 Max for GPU-heavy local AI work.”
  9. Apple MacBook Pro 14.2-inch with M5 Pro, 15-core CPU, 16-core GPU, 48GB Memory, 1TB SSD, Space Black

    Apple MacBook Pro 14.2-inch with M5 Pro, 15-core CPU, 16-core GPU, 48GB Memory, 1TB SSD, Space Black

    Best Compact Pro Configuration

    View on Amazon

    This configuration makes the most sense for data scientists who need substantial memory but prefer a smaller screen and a more compact listed footprint than the 16-inch M5 Pro models. Its 48GB unified memory and 1TB SSD are a strong pairing for serious local analysis, while the 14.2-inch XDR panel, 120Hz refresh rate, and three Thunderbolt 5 ports give it capable workstation credentials. Compared with the 16.2-inch M5 Pro with 48GB, it trades screen space and a listed 18-core CPU for a 14.2-inch display and a stated 15-core CPU. There is a significant listing inconsistency, though: other content describes a 16-inch model and an 18-core CPU. I would confirm the exact configuration before buying. Its listed weight of 2.14 kg also makes the “compact” role relative, not an ultralight travel pick.

    Pros:
    • 48GB unified memory supports demanding analysis and multitasking.
    • 14.2-inch Liquid Retina XDR display has a listed 120Hz refresh rate.
    • Three Thunderbolt 5 ports plus HDMI and SDXC support varied desk and data workflows.
    • 1TB SSD provides local space for projects and datasets.
    Cons:
    • The listing conflicts on display size and CPU core count, so the exact configuration is uncertain.
    • At a listed 2.14 kg, it may not suit buyers seeking a particularly light travel laptop.
    • The 16-core GPU has less listed GPU capacity than the M5 Max 40-core option.

    Best for: Mobile data scientists who want 48GB memory, a high-refresh XDR display, and pro-level ports in a 14.2-inch configuration, after verifying the listing details.

    Not ideal for: Buyers who need a confidently specified configuration or a lightweight laptop; the listing conflicts on size and CPU, and lists a 2.14 kg weight.

    • Processor:Apple M5 Pro, 15-core CPU (listing also describes an 18-core CPU)
    • GPU:16-core
    • Memory:48GB unified memory
    • Storage:1TB SSD
    • Display:14.2-inch Liquid Retina XDR (listing also describes a 16-inch model)
    • Refresh rate:120Hz
    • Resolution:3456 × 2234
    • Weight:2.14 kg
    • Ports:Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
    Our verdict
    “Consider this 14.2-inch M5 Pro only if its 48GB memory and compact display format fit your work and you can verify the conflicting listing details.”
  10. Apple 14.2-inch MacBook Pro with M5 Chip, 10-Core CPU and GPU, 16GB Memory, 1TB SSD, Space Black

    Apple 14.2-inch MacBook Pro with M5 Chip, 10-Core CPU and GPU, 16GB Memory, 1TB SSD, Space Black

    Best for Entry-Level Data Science

    View on Amazon

    For learners and analysts building a data science setup around coding, notebooks, and cloud compute, this is the most approachable configuration in this group. The M5 chip with a 10-core CPU and GPU and 16GB unified memory should suit lighter local work, while the 1TB SSD offers more project space than the 512GB M5 alternative listed elsewhere in the roundup. Compared with the 14.2-inch M5 Pro with 48GB memory, it gives up substantial memory and GPU headroom, making it a weaker fit for large local datasets or running bigger models on-device. Its XDR display, ports, and support for two external displays still make it a capable everyday work machine. The key limitation for longer-term AI work is 16GB memory; buyers expecting heavier local workloads may be better served by an M5 Pro configuration.

    Pros:
    • M5 10-core CPU and GPU provide a capable base for coding and everyday analysis.
    • 1TB SSD leaves room for more local projects than the listed 512GB M5 configuration.
    • Liquid Retina XDR display is specified with up to 1600 nits peak brightness.
    • Three Thunderbolt 4 ports, HDMI, SDXC, and support for up to two external displays.
    Cons:
    • 16GB unified memory is restrictive for larger datasets and heavier local AI workloads.
    • Its 10-core GPU has less listed capacity than the M5 Pro configurations.
    • Three Thunderbolt 4 ports are a generation behind the Thunderbolt 5 connections on the M5 Pro models.

    Best for: Students, junior analysts, and Python learners who use cloud platforms for intensive computing and want a capable MacBook Pro for coding and lighter local analysis.

    Not ideal for: Machine-learning practitioners who plan to run large models or memory-heavy workloads locally; the 16GB memory and standard M5 chip offer less headroom than the M5 Pro options.

    • Chip:Apple M5
    • CPU:10-core
    • GPU:10-core
    • Unified memory:16GB
    • Storage:1TB SSD
    • Display:14.2-inch Liquid Retina XDR
    • Peak brightness:1600 nits
    • Ports:Three Thunderbolt 4, MagSafe 3, SDXC, HDMI, headphone jack
    • External display support:Up to two displays
    Our verdict
    “Choose this M5 MacBook Pro for learning and cloud-assisted data science, but move to an M5 Pro model if local AI workloads are part of your regular routine.”
macbook pro for data science and ai
What makes a great macbook pro for data science and ai
1
Match Unified Memory to Your Actual Workload
Unified memory is shared across the CPU and GPU, so the amount available affects how many tools and data-heavy tasks can stay acti
2
Choose M5 Pro or M5 Max by Where Work Runs
The M5 Pro configurations are the more balanced choices for coding, data preparation, notebooks, and workloads that make moderate
3
Decide How Much Work Must Stay on the SSD
SSD capacity affects how much data, code, and model material can stay readily available on the Mac, but it does not replace memory
4
Balance Screen Size Against Portability
A 16-inch MacBook Pro gives code, tables, documentation, and terminal windows more room, which can reduce reliance on an external
How to choose your macbook pro for data science and ai
1
How we picked
I ranked these configurations by how well their memory, GPU capacity, storage, and screen size align with real data scie
2
Match Unified Memory to Your Actual Workload
Unified memory is shared across the CPU and GPU, so the amount available affects how many tools and data-heavy tasks can
3
Choose M5 Pro or M5 Max by Where Work Runs
The M5 Pro configurations are the more balanced choices for coding, data preparation, notebooks, and workloads that make
4
Decide How Much Work Must Stay on the SSD
SSD capacity affects how much data, code, and model material can stay readily available on the Mac, but it does not repl
5
Balance Screen Size Against Portability
A 16-inch MacBook Pro gives code, tables, documentation, and terminal windows more room, which can reduce reliance on an
Vetted macbook pro for data science and ai ·
The best macbook pro for data science and ai, compared
★ Winner Apple MacBook Pro 16.2-inch wi
Best Overall for Larger Local Workloads
10compared
40-coretop gpu
3chips

How We Picked

I ranked these configurations by how well their memory, GPU capacity, storage, and screen size align with real data science and AI workflows. For local model experimentation, parallel notebooks, larger datasets, and graphics-heavy tasks, I gave more weight to memory and GPU resources. For coursework, remote compute, and general development, I also considered whether a less powerful configuration leaves enough capacity for everyday multitasking without adding hardware that the buyer may not use.

The ranking favors useful balance over the highest specification alone. That puts the 16-inch M5 Pro with 64GB near the top for broad use, while the M5 Max models rank higher for buyers who can use their expanded GPU and memory but lower for most learners because that capacity may go unused. I also compared screen size and SSD capacity as workflow choices: a larger display can make extended coding sessions easier, and more storage helps when datasets and local projects stay on the laptop. These recommendations are based on the listed configurations, not claims of hands-on testing or benchmark results.

Feature comparison
macbook pro for data science and aiChipPorts
Apple MacBook Pro 16.2-inch wiApple M5 ProThree Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
Apple 16.2-inch MacBook Pro wiApple M5 ProThree Thunderbolt 5, MagSafe 3, SDXC card slot, HDMI, headphone jack
Apple MacBook Pro 16.2-inch wiApple M5 MaxThree Thunderbolt 5, MagSafe 3, SDXC card slot, HDMI, headphone jack
Apple 2026 MacBook Pro Laptop —Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
Apple 14.2-inch MacBook Pro wiApple M5Three Thunderbolt 4, MagSafe 3, SDXC card slot, HDMI, headphone jack
Apple 2026 MacBook Pro Laptop Apple M5 Pro—
Apple MacBook Pro 16.2-inch wiApple M5 MaxThree Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
Apple MacBook Pro 16-inch withApple M5 Pro—
Apple MacBook Pro 14.2-inch wi—Three Thunderbolt 5, MagSafe 3, SDXC, HDMI, headphone jack
Apple 14.2-inch MacBook Pro wiApple M5Three Thunderbolt 4, MagSafe 3, SDXC, HDMI, headphone jack
Everyday → specialist
Everyday & valuePremium & specialist
Which macbook pro for data science and ai fits you?
The everyday user
All-round, reliable
The enthusiast
Premium & high-performance
The gift-giver
Looks & craftsmanship

Factors to Consider When Choosing Macbook Pro For Data Science And Ai

I’d start with the kind of work you plan to run locally, then choose the configuration around that workload. Memory, compute, and storage solve different problems, and a higher chip tier cannot make up for every mismatch.

Match Unified Memory to Your Actual Workload

Unified memory is shared across the CPU and GPU, so the amount available affects how many tools and data-heavy tasks can stay active together. For coursework, small datasets, and cloud-hosted model training, 16GB may be workable, though it leaves less room for local experimentation. If you expect to keep notebooks, a development environment, and local services open together, a 48GB or 64GB configuration provides more headroom. Large local models can need substantial memory, but the exact amount depends on model size, quantization, and what else is running. A common mistake is buying extra GPU cores while overlooking a memory limit that constrains the workload first. Since memory is not a routine upgrade after purchase, I’d prioritize a suitable amount at checkout over an upgrade that only looks impressive on a spec sheet.

Choose M5 Pro or M5 Max by Where Work Runs

The M5 Pro configurations are the more balanced choices for coding, data preparation, notebooks, and workloads that make moderate use of local GPU resources. The M5 Max’s 40-core GPU and 128GB memory are more compelling when you have a clear reason to run larger AI workloads or GPU-heavy tasks on the laptop. Many training workflows depend on software support, memory needs, and the scale of the model—not only the number of GPU cores. If your compute runs on a remote server or cloud platform, paying for the Max may deliver little practical benefit for day-to-day work. Check that the frameworks and tools you rely on support the intended Apple silicon workflow before choosing a configuration for local AI. The better purchase is the chip that fits your compute location and workload, not the one with the biggest name.

Decide How Much Work Must Stay on the SSD

SSD capacity affects how much data, code, and model material can stay readily available on the Mac, but it does not replace memory or GPU capacity. The 1TB options suit many development workflows when datasets are managed selectively or kept on external and remote storage. A 2TB or 4TB SSD is useful if you keep multiple datasets, environments, and project archives locally or work where external drives are inconvenient. Before spending for a larger internal drive, estimate the space taken by active projects rather than counting every dataset you might someday download. External storage can be a practical companion, but it adds something to carry and manage. I’d treat internal capacity as a convenience and workflow choice, not a shortcut to faster model computation.

Balance Screen Size Against Portability

A 16-inch MacBook Pro gives code, tables, documentation, and terminal windows more room, which can reduce reliance on an external display during long sessions. The 14-inch models are easier to carry between classes, offices, and meetings, while still offering a capable workstation configuration in the M5 Pro options. The choice is less about which screen is universally better and more about where you do most of your work. If the laptop is usually docked, a 16-inch model may be a more comfortable primary screen; frequent commuters may value the smaller footprint. A common buying error is choosing the largest display for occasional desk work while carrying it daily. Think about your usual setup, and factor in whether you already use an external monitor.

Separate Learning and Cloud Work From Local AI

Students and new practitioners often run tutorials, smaller notebooks, and remote compute rather than training large models entirely on their own laptop. In that setting, an M5 with 16GB memory can be a sensible starting point, especially when projects remain modest and cloud resources are available. Local inference, larger datasets, and multiple simultaneous development tools raise the value of added memory and GPU capacity. Before buying for AI, check whether your course or team supplies hosted notebooks, a remote GPU, or a managed development environment. Cloud compute can reduce the need for a Max configuration, but it may depend on internet access, account limits, and ongoing service costs. Choose based on the work you can reliably run, not just the most demanding workload you might try once.

Budget for the Configuration You Cannot Change

These MacBook Pro configurations combine their memory, processor, and SSD choices into fixed purchase options, so planning ahead matters. I’d rank memory first for workload flexibility, then decide whether the GPU tier and storage capacity match the projects you expect to keep local. Buyers sometimes overinvest in storage while leaving too little memory for their tools, or choose a powerful chip for tasks that run remotely. Another pitfall is buying only for today’s workload without allowing for a longer course, larger projects, or additional software. On the other hand, paying for 128GB memory and an M5 Max makes little sense if your work is mostly browser-based and cloud-hosted. Write down the applications, dataset sizes, and compute setup you actually use before settling on a configuration.

Frequently Asked Questions

Is 16GB memory enough for data science and AI on a MacBook Pro?

It can be enough for learning and lighter work, such as coding, small datasets, and notebooks that use remote compute. It offers less flexibility when you run multiple development tools, hold larger datasets in memory, or experiment with local models. The 16GB M5 models in this roundup are better suited to those lighter workflows than to demanding local AI projects. If you are unsure how much of your work will stay local, a higher-memory configuration gives you more room to grow. I’d choose 16GB when the work is clearly modest or a cloud environment handles the heavy computation.

Should I choose an M5 Max with 128GB memory or an M5 Pro with 64GB?

Choose the M5 Max with 128GB memory when your workload can use its higher GPU capacity and larger memory pool, such as substantial local AI experimentation. The M5 Pro with 64GB is a more balanced fit for many development and data analysis tasks that need plenty of memory but do not call for the Max configuration. If your training runs on a remote GPU, the Pro may make better sense because the laptop’s GPU is not doing that work. Consider software compatibility and the size of the models you intend to run locally before deciding. The right choice depends on where your compute happens, not simply the most demanding specification.

Is the 14-inch M5 Pro with 48GB memory a better choice than the 16-inch M5 Pro with 24GB?

For workloads that benefit from memory headroom, the 14-inch model’s 48GB may be more useful than the 16-inch model’s larger screen paired with 24GB. The 16-inch option gives you more display space, which can help when reviewing code and data without an external monitor. Choose the 14-inch configuration if you move around often and expect to run several tools or larger tasks locally. Pick the 16-inch configuration if screen area is your priority and your work fits comfortably in 24GB. This decision is a trade between portability, display space, and memory—not a straightforward performance ranking.

Does a 4TB SSD make AI model work faster than a 2TB SSD?

More SSD capacity does not by itself make model computation faster; it gives you more room to store local datasets, projects, and model files. The 4TB M5 Max configuration can suit a workflow that keeps a larger library of material on the laptop, while the 2TB version may be sufficient for a more selective local collection. Memory and GPU resources are more directly relevant to whether a workload can run locally and how much can stay active. If large files are accessed less often, external storage may cover some needs, though it adds a separate device to manage. Choose the larger drive for local storage demands rather than as a substitute for more compute capacity.

Which MacBook Pro should I choose if my AI training runs in the cloud?

If cloud services handle training, you may not need the M5 Max’s expanded GPU capacity. A MacBook Pro M5 Pro configuration can provide a capable local environment for coding, data preparation, and connecting to remote compute, with memory chosen for the tools and datasets you keep on the laptop. For lighter coursework and remote notebooks, the base M5 models may also fit, though their 16GB memory provides less multitasking room. Consider whether you need to work offline and how large your local datasets are before choosing storage. I’d spend first on enough local memory for smooth development, then on GPU or SSD capacity only when your workflow gives those upgrades a clear purpose.

Conclusion

For most people seeking a best overall balance, I’d choose the 16-inch M5 Pro with 64GB memory and a 1TB SSD. The best value for lighter work is a 14-inch M5 model with 16GB memory, particularly for beginners using cloud compute and modest datasets; among the listed options, the 1TB version gives more local storage than the 512GB configuration. My best premium pick is the 16-inch M5 Max with 128GB memory, with 2TB or 4TB selected according to local storage needs. For portability with substantial memory, the 14-inch M5 Pro with 48GB stands out. If you expect to run larger models locally, prioritize the M5 Max; if you mainly code and connect to remote compute, an M5 Pro or base M5 is the more measured choice.

COLUMBUS DAY / I

Columbus Day / Indigenous Peoples' Day Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

13 Best 4K TVs for Sports Viewing in 2026

Discover the best 4K TVs for sports in 2026. Our top picks include options for every budget, with standout features for smooth, vibrant sports viewing.

15 Best Smart Light Switches for Connected Home Lighting in 2027

Compare 15 smart light switches by wiring, dimming, multiway support, and smart-home compatibility to find the right fit for your home.

5 Best 240V Heat Pump Dryers of 2026 for Energy-Efficient Laundry

Discover the top heat pump dryers 240V for 2026. Find energy-efficient, space-saving options with expert reviews, comparisons, and buying tips.

15 Best Induction Stoves for Flexible Cooking in 2026

Compare 15 portable induction stoves for precise heat control, durable builds, single or double burners, and easier everyday cooking.