npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rmd-uniform-lifetime

v1.0.0

Published

IRS Required Minimum Distribution (RMD) math — the Uniform Lifetime and Single Life tables (Pub 590-B, 2022+) plus SECURE 2.0 required-beginning-age logic. Zero dependencies.

Readme

rmd-uniform-lifetime

IRS Required Minimum Distribution (RMD) math — the Uniform Lifetime Table and Single Life Table from Publication 590-B (2022+), plus the SECURE 2.0 required-beginning-age logic. Zero dependencies.

npm install rmd-uniform-lifetime

Why

Everyone with a traditional IRA or 401(k) eventually has to take RMDs, and the math is exact: prior-year-end balance ÷ an age-based divisor from an official IRS table. The tables were revised for 2022 and SECURE 2.0 moved the starting age from 72 to 73 (and to 75 in 2033) — a combination that trips up older code. npm had no package with the current tables. This one has them, verified against the IRS's own worked example.

import { rmdUniformLifetime, requiredBeginningAge } from "rmd-uniform-lifetime";

// IRS Pub 590-B example: $100,000 at age 75 → $4,065
rmdUniformLifetime(100_000, 75);   // 4065.04

requiredBeginningAge(1955);        // 73  (SECURE 2.0)
requiredBeginningAge(1965);        // 75

API

  • rmdUniformLifetime(priorYearEndBalance, age) — an owner's RMD (Table III).
  • rmdSingleLife(priorYearEndBalance, age, subtractYears?) — a beneficiary's RMD (Table I); pass subtractYears for the fixed-divisor "stretch" reduction.
  • rmd(balance, divisor) — the primitive; use it with a Joint & Last Survivor divisor (Table II) when the sole beneficiary is a spouse more than 10 years younger.
  • uniformLifetimeDivisor(age) / singleLifeDivisor(age) — raw table lookups (ages past 120 use the age-120 value).
  • requiredBeginningAge(birthYear)72 | 73 | 75 per SECURE 2.0.
  • isRmdRequired(birthYear, distributionYear) — whether an RMD is due that year.
  • UNIFORM_LIFETIME_TABLE / SINGLE_LIFE_TABLE — the exported tables.

Scope

Ships the Uniform Lifetime Table (owners) and Single Life Table (beneficiaries) in full. The Joint & Last Survivor Table (Table II) is a large two-dimensional grid indexed by both spouses' ages; rather than risk a transcription error, look up that divisor from IRS Table II and pass it to rmd(balance, divisor). The RMD itself may be deferred to April 1 of the year after the required beginning age, with two distributions then due — the package computes the amount; the April-1 timing is the account holder's to apply. Not tax advice.

Related

By the same author, a US finance toolkit: tips-index-ratio · treasury-fiscaldata · tbill · instrument-identifiers · 32nds.

Author

Built by Moshe Malka — engineering leader in New York City. Studio work at Quentin.Code.

MIT © Moshe Malka