---
title: "Ruby 3.1 End of Life: Ended Mar 26, 2025 | Since.dev"
description: "Ruby 3.1 reached end of life on March 26, 2025. Upgrade to Ruby 4.0, supported until March 2029. Its latest patch is 3.1.7, released March 26, 2025."
canonical_url: https://since.dev/calendar/ruby/3.1
last_updated: 2026-12-05
---

# Ruby 3.1 end of life

Ruby 3.1 reached end of life on March 26, 2025. Upgrade to Ruby 4.0, supported until March 2029. Its latest patch is 3.1.7, released March 26, 2025.

## Support

- **Released:** December 25, 2021
- **Support Status:** Ended March 26, 2025
- **Latest:** [3.1.7](https://github.com/ruby/ruby/releases/tag/v3%5F1%5F7), March 26, 2025
- **Maintained:** No
- **Check yours:** `ruby --version`
- **Last checked:** Dec 4, 2026

## Upgrade to

[Ruby 4.0](https://since.dev/calendar/ruby/4.0.md), supported until March 2029 (latest `4.0.10`). A fix Since.dev opens moves to [Ruby 3.4](https://since.dev/calendar/ruby/3.4.md), the nearest release with a year of support left.

## Releases around it

1. [Ruby 3.4](https://since.dev/calendar/ruby/3.4.md) · until March 31, 2028
2. [Ruby 3.3](https://since.dev/calendar/ruby/3.3.md) · until March 31, 2027
3. [Ruby 3.2](https://since.dev/calendar/ruby/3.2.md) · ended March 31, 2026
4. Ruby 3.1 · ended March 26, 2025
5. [Ruby 3.0](https://since.dev/calendar/ruby/3.0.md) · ended April 23, 2024
6. [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md) · ended March 31, 2023
7. Ruby 2.6 · ended March 31, 2022

[Every Ruby release](https://since.dev/calendar/ruby.md)

## In your code

- .ruby-version · Before: `3.1` · After: `3.4`
- Dockerfile · Before: `FROM ruby:3.1-slim` · After: `FROM ruby:3.4-slim`
- .github/workflows/ci.yml · Before: `ruby-version: '3.1'` · After: `ruby-version: '3.4'`

## Questions

- **When is Ruby 3.1 end of life?** Ruby 3.1 reached end of life on March 26, 2025. Support ended March 26, 2025.
- **What should I upgrade Ruby 3.1 to?** Upgrade to Ruby 4.0, supported until March 2029. A fix moves to Ruby 3.4, the nearest release with a year of support left.
- **Is Ruby 3.1 still supported?** No: Support ended March 26, 2025.
- **How do I check which Ruby version I run?** Run ruby --version where the code runs.
- **What is the latest Ruby 3.1 patch?** Ruby 3.1's latest patch is 3.1.7, released March 26, 2025.

## Source

[endoflife.date](https://endoflife.date/ruby)

Data license: [MIT License](https://opensource.org/license/mit). Copyright 2020 endoflife.date contributors.

## Does your code use it?

Paste a public repository. Since.dev analyzes it and shows the files and lines these dates hit.

[Add to your calendar](webcal://api.since.dev/v1/calendar.ics?provider=ruby) · [iCal file](https://api.since.dev/v1/calendar.ics?provider=ruby) · [RSS](https://api.since.dev/v1/calendar.rss?provider=ruby)

## More from Ruby

- Mar 31, 2027 · [Ruby 3.3](https://since.dev/calendar/ruby/3.3.md) · Runtime
- Mar 31, 2028 · [Ruby 3.4](https://since.dev/calendar/ruby/3.4.md) · Runtime
- Mar 31, 2029 · [Ruby 4.0](https://since.dev/calendar/ruby/4.0.md) · Runtime

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
