
Google has released MedGemma 2, an open model built on Gemma 4 for developers of healthcare applications. Earlier MedGemma versions answered questions about text and images; the new one reaches out to external systems on its own. It writes FHIR and SQL queries against electronic health records, generates Python code for clinical calculations and answers with citations to the guidelines and papers it is given. The model comes in two sizes: 26B MoE for hospital servers and private clouds, and E4B for laptops and smartphones.
According to Google, MedGemma 2 26B completes 86.3% of tasks on MedAgentBench, a benchmark in which an agent looks up information and places orders in a virtual health record, compared with 81.3% for the base Gemma 4 26B. The smaller E4B scores 82.3% on the MedQA medical knowledge benchmark, against 74% for Gemma 4 E4B and 69.1% for the previous MedGemma 1.5 4B. The inference and fine-tuning code is on GitHub under Apache 2.0, and the weights of both versions are on Hugging Face under the HAI-DEF license, which prohibits any use that could lead a regulator to treat Google as the manufacturer of a medical device.

What MedGemma 2 can do
The headline feature is native tool calling. The model reasons step by step, notices when information is missing, calls the right function and interprets the result, over several turns if needed. Google therefore positions it as the “reasoning and orchestration backbone for clinical agents” – agents that pull a patient’s history from the health record and compute clinical scores in code. The code itself is executed not by the model but in the developer’s sandbox, and the developer is responsible for running it safely.

The second skill is grounding: the model answers from documents supplied to it and cites the passages its answer relies on, so a clinician can check it against the original. Google explains this by the fact that medical knowledge keeps changing.
In addition, the smaller E4B transcribes medical dictation by itself, without a separate speech recognition module. However, it only accepts prerecorded audio of up to 30 seconds and does not listen to a live microphone.
Architecture and hardware requirements
MedGemma 2 reuses the Gemma 4 architecture unchanged: E4B is a dense model, while 26B is a mixture of experts (MoE) in which about 15% of the parameters are active per token (editors’ estimate). The image encoders are also taken from Gemma 4 without medical pretraining, whereas MedGemma 1 and 1.5 used a MedSigLIP-based encoder. What makes the model medical is post-training on de-identified and licensed data, ranging from health records and medical images to ECGs, surgical video, genomic data and tool-use examples.
| Spec | MedGemma 2 E4B | MedGemma 2 26B MoE |
|---|---|---|
| Parameters (billions) | 4.5 effective, about 8 including per-layer embeddings | 25.2 total, 3.8 active; 128 experts plus 1 shared, 8 active |
| Validated context (tokens) | 128K | 128K; the architecture supports 256K |
| Input | text, images, 3D CT and MRI volumes, video, audio | same, without audio |
| Memory (GB) | about 18 at 16-bit, 4–5 at mixed 4/8-bit | about 58 at 16-bit |
| Hardware | a 24 GB GPU (RTX 4090, L4) or a MacBook Pro with 24 GB or more; at 4-bit, smartphones such as the Pixel 11 Pro and Galaxy S26 | a single GPU with 80 GB or more (H100, A100, RTX PRO 6000) |
By the editors’ calculation, an 80 GB card has about 22 GB left after loading the larger version, which can go to long context and concurrent requests, while the mixed 4/8-bit E4B build for LiteRT-LM is roughly four times smaller than the 16-bit one.
Results and comparisons
There are no independent measurements of MedGemma 2 yet, so the table is compiled from the model card. MedGemma 1.5 4B cannot call tools, so it has no agentic results.
| Benchmark, metric | MedGemma 2 E4B | Gemma 4 E4B | MedGemma 1.5 4B | MedGemma 2 26B MoE | Gemma 4 26B |
|---|---|---|---|---|---|
| MedQA, accuracy (%) | 82.3 | 74.0 | 69.1 | — | — |
| MedAgentBench, success rate (%) | 53.3 | 48.7 | — | 86.3 | 81.3 |
| MedCalc-Bench Verified, accuracy (%) | 59.1 | 37.9 | — | 72.8 | 66.2 |
| AgentEHR, common subset, F1 | 27.7 | 10.2 | — | 30.7 | 23.5 |
| Grounded clinical QA, internal, accuracy (%) | 94.8 | 85.2 | 13.1 | 95.6 | 90.8 |
| MIMIC-CXR, chest X-ray, macro F1 | 86.3 | 74.2 | 89.5 | 89.8 | 84.9 |
A dash means Google gives no result.
Post-training helped the smaller version most on agentic tasks: on AgentEHR, where the model writes SQL queries against a health record, its F1 almost tripled, and its accuracy on MedCalc-Bench clinical calculations rose by 56%. The larger version gains a more modest 5 to 7 points, since the base Gemma 4 26B already handles tools reasonably well without extra training. That said, the gap between the two sizes is wide: the smaller version solves only about half of the multi-step MedAgentBench tasks, and for such scenarios Google recommends the 26B model.
The first-generation text-only MedGemma 27B scored 87.7% on MedQA – only 5.4 points more than the smaller MedGemma 2, even though it has six times as many parameters as E4B has effective ones (editors’ estimate). Meanwhile, in the original MedAgentBench paper, the best model, Claude 3.5 Sonnet v2, completed 69.67% of tasks; the evaluation harness there was different, but the larger MedGemma 2 is well above that bar.
Where the model fits
Among medical models, the strength of MedGemma 2 is its open weights: patient data never leaves the clinic’s infrastructure, and the smaller version makes it possible to build mobile apps that run fully offline. The smaller MedGemma 2 is also more accurate than Gemma 4 E4B at extracting data from PDF lab reports into JSON: 85.0 vs 78.6 macro F1 on an internal Google dataset.
In image classification, the smaller version sometimes trails MedGemma 1.5 4B – on MIMIC-CXR chest X-rays, histopathology and dermatology – so Google keeps the previous version available for such tasks. On radiology dictation, E4B has a word error rate of 10.6%: 2.6 times lower than Gemma 4 E4B, but almost twice as high as the specialized MedASR model. On hospital course summaries, MedGemma 2 performs on par with the base Gemma 4.
Finally, Gemma 4 itself is distributed under Apache 2.0, whereas the HAI-DEF terms require passing the use restrictions on with derivative models and, where applicable, obtaining authorization from a health regulator. The announcement also stresses that the model’s outputs are not intended to directly inform clinical decisions and require independent verification.
How to run it

Besides Transformers and vLLM, MedGemma 2 is supported by Ollama, Unsloth, llama.cpp and MLX. In Transformers, thinking mode is enabled with the enable_thinking=True parameter, and Google recommends version 5.15.0 or later for parsing tool calls. Google Cloud customers can use Model Garden on the Gemini platform to evaluate and fine-tune the model inside their own private cloud and then deploy it as a service.
The bottom line
MedGemma 2 suits teams that need a medical agent on their own hardware: the larger version handles multi-step work with health records and clinical calculations on a single server GPU, while the smaller one is good for offline dictation transcription and document parsing. For some image classification tasks it makes more sense to stay on MedGemma 1.5, for accurate speech transcription MedASR is the better choice, and where there is no medical gain, the base Gemma 4 delivers the same quality under a more permissive license. All results so far come from Google itself, so the model should be tested on in-house data before deployment.
