Followers

Showing posts with label mole fraction. Show all posts
Showing posts with label mole fraction. Show all posts

Tuesday, November 17, 2026

Ideal gas mole calculator - SI

Ideal Gas Mole Calculator

Created by: Nayomi Alvarez Contreras
Date: November 15, 2026

Description

This application calculates the total number of moles in a specified volume of an ideal gas. It can be used for a pure gas (one component) or for a gas mixture. For mixtures, the user can enter the mole fraction of each component to calculate the number of moles of every gas in the mixture.

Ideal-gas idealization

The gas is assumed to behave ideally. Gas molecules are modeled as point particles with negligible individual volume, and intermolecular attractions or repulsions are neglected. Collisions are assumed to be perfectly elastic, and the gas is considered to be in thermodynamic equilibrium. Under these assumptions, the gas follows the ideal gas equation of state. This approximation is generally more accurate at relatively low pressures and high temperatures, and may become less accurate near condensation or at high pressures.

Instructions

  1. Enter the absolute pressure in pascals (Pa), the gas volume in cubic metres (m3), and the absolute temperature in kelvin (K).
  2. For a pure gas, leave the composition as 1 (mole fraction = 1).
  3. For a mixture, enter the component names separated by commas and their mole fractions separated by commas, in the same order. Example: N2, O2, CO2 and 0.78, 0.21, 0.01.
  4. Mole fractions must be non-negative and add up to 1. The calculator allows a small rounding tolerance of ±0.001.
  5. Select Calculate. Use Load Example to test a sample mixture, or Clear to reset the application.

All input quantities must be entered in SI units. Pressure must be absolute, not gauge pressure. Do not enter °C, kPa, bar, litres, or other non-SI alternatives.

Equation and calculation method

Ideal gas equation

\[PV=nRT\]

Total number of moles

\[n=\frac{PV}{RT}\]

Moles of component \(i\) in a mixture

\[n_i=y_i n\]

Mole fraction

\[y_i=\frac{n_i}{n}, \qquad \sum_{i=1}^{k} y_i=1\]

Where \(P\) is absolute pressure (Pa), \(V\) is volume (m3), \(T\) is absolute temperature (K), \(n\) is the total amount of gas (mol), and \(R\) is the universal gas constant:

\[R=8.314462618\ \mathrm{Pa\,m^3\,mol^{-1}\,K^{-1}}\]

For a mixture, Dalton's law gives the partial pressure of component \(i\) as \(P_i=y_iP\). The calculator also reports this value for each component.

Input data (SI units only)

Gas composition

Enter one component for a pure gas, or multiple components for a mixture.

Separate names with commas.
Separate values with commas; the sum must equal 1.

Results

Total amount of gas:

—

Mixture composition and component results:

Component Mole fraction, yi Partial pressure, Pi (Pa) Amount, ni (mol)
Results will appear here.

Assumptions and limitations

  • The gas or gas mixture is treated as ideal, so \(PV=nRT\) is assumed to be valid.
  • Pressure is uniform throughout the gas volume and is an absolute pressure.
  • The gas temperature is uniform and expressed in kelvin.
  • The entered mole fractions describe the overall gas composition and must sum to one.
  • The program calculates amount of substance; it does not calculate compressibility factors or real-gas corrections.

Thursday, September 10, 2026

VLE Data Calculator: n-Heptane / n-Octane System

VLE Data Calculator: n-Heptane / n-Octane System

VLE Data Calculator: n-Heptane / n-Octane System

Author: Duran Flores Sandra Date: September 5, 2026

Instructions

This application automates Vapor-Liquid Equilibrium (VLE) calculations for a binary mixture of n-heptane (B) and n-octane (A) using high-density interpolated experimental data.

Total System Pressure: $P_{\text{total}} = 760 \text{ mmHg}$

Select any known parameter ($T$, $x_b$, or $y_b$), enter its value within the valid range, and click Calculate to evaluate the remaining equilibrium properties.

Mathematical Foundations

The equilibrium mole fractions are computed from vapor pressure data via Raoult's Law:

$$x_b = \frac{P_{\text{total}} - P_A^{\text{sat}}}{P_B^{\text{sat}} - P_A^{\text{sat}}}$$

$$y_b = \frac{x_b \cdot P_B^{\text{sat}}}{P_{\text{total}}}$$

Interpolation over fine sub-intervals ($\Delta T = 0.01 \text{ °C}$) guarantees numerical consistency and bi-directional accuracy across all state variables.

Equilibrium State Results

System Temperature ($T$)
-
°C
Liquid Mole Fraction ($x_b$)
-
mol n-heptane / mol
Vapor Mole Fraction ($y_b$)
-
mol n-heptane / mol

Weight Fraction to Mole Fraction Converter

Weight Fraction to Mole Fraction Converter

Created by: Sabine Amparan Melendez | Date: September 8, 2026
Instructions:
  1. Click on any element in the Interactive Periodic Table to inspect its properties or insert it directly into your active chemical component card.
  2. Construct molecules by adding element rows and entering stoichiometric atom counts.
  3. Provide the Weight Fraction ($w_i$) for each component (total sum must equal 1.0).
  4. Click Calculate Mole Fractions for automated conversion.
Interactive Periodic Table Click an element to add it to the active component card
Selected Element: None Atomic Number (Z): - Symbol: - Standard Atomic Weight: - g/mol
Mathematical Formulation:

Molecular weight ($M_i$) of component $i$ composed of stoichiometric coefficients ($n_j$) and atomic weights ($A_j$):

$$M_i = \sum_{j} (n_j \cdot A_j)$$

The mole fraction ($x_i$) from weight fractions ($w_i$) in an $N$-component mixture:

$$x_i = \frac{\frac{w_i}{M_i}}{\sum_{k=1}^{N} \frac{w_k}{M_k}}$$

Calculation Results

Component Formula Mol. Weight ($g/mol$) Weight Fraction ($w_i$) Mole Fraction ($x_i$)

Raoult's law mole fraction calculator

Raoult's Law Mole Fraction Calculator

Created by: Álvarez Contreras

Creation date: September 4, 2026

Description

This application calculates the liquid mole fractions \(x_1\) and \(x_2\), and the vapor mole fractions \(y_1\) and \(y_2\), for an ideal binary mixture.

Instructions

  1. Enter the names of the two species.
  2. Select the pressure unit.
  3. Enter the total system pressure.
  4. Enter the vapor pressure of each species.
  5. Use the same unit for all pressure values.
  6. Press the Calculate button.

Equations

\[P=x_1P_1^{sat}+x_2P_2^{sat}\] \[x_1=\frac{P-P_2^{sat}}{P_1^{sat}-P_2^{sat}}\] \[x_2=1-x_1\] \[y_1=\frac{x_1P_1^{sat}}{P}\] \[y_2=\frac{x_2P_2^{sat}}{P}\]

Input Data

Species 1 Species 2 Pressure Unit
Total Pressure \(P\) Vapor Pressure \(P_1^{sat}\) Vapor Pressure \(P_2^{sat}\)

Results

Phase Species 1 Species 2 Sum
Liquid mole fraction \(x\) - - -
Vapor mole fraction \(y\) - - -

Important: This calculator assumes an ideal binary liquid mixture and an ideal vapor phase.

Ideal gas mole calculator - SI

Ideal Gas Mole Calculator Created by: Nayomi Alvarez Contreras Date: November 15, 2026 Desc...