무료 & 무설치 — 가입이 필요하지 않습니다

Pixel Ratio Calculator

Calculate device pixel ratios, convert between CSS pixels and physical pixels, and determine optimal image resolutions for retina and HiDPI displays. Essential for responsive web design, mobile app development, and ensuring crisp graphics on every screen density.

Pixel Ratio Calculator — 실시간 비율 미리보기
Physical Pixels
—
A
B
⚖️
Proportion Solver
A : B = C : D — Enter any 3 values
:
=
:
📊
Results
Visual ratio breakdown
Solved Proportion
—
Simplified
—
Percentages
—
Decimal
—
Fraction
—
Visual Ratio
A
B
Part A: —
Part B: —
    ✨
    Ratio Simplifier
    Reduce any ratio to its simplest form
    :
    📊
    Simplified Result
    Reduced to lowest terms
    Simplified Ratio
    —
    GCD Used
    —
    Percentages
    —
    Decimal Ratio
    —
    Fraction
    —
    Visual Ratio
    A
    B
    Part A: —
    Part B: —
      📐
      Ratio Scaler
      Multiply a ratio by a scale factor
      :
      ×
      📊
      Scaled Result
      Ratio after scaling
      Scaled Ratio
      —
      Original
      —
      Factor
      —
      Percentages
      —
      Simplified
      —
      Visual Ratio
      A
      B

        🕐 Recent Calculations

        📭
        No calculations yet. Start computing above!

        What is Pixel Ratio?

        The device pixel ratio (DPR) is the relationship between a device's physical pixels and its CSS (logical) pixels. A DPR of 2.0 (common on Retina displays) means each CSS pixel is rendered by a 2×2 grid of four physical pixels. This makes text and UI elements appear sharper, but images must be provided at 2× resolution to avoid looking blurry on these high-density screens.

        Modern devices span a wide range of pixel ratios: standard desktop monitors at 1.0, MacBook Retina and iPad at 2.0, iPhone Pro at 3.0, and some Android devices at 2.75, 3.5, or even 4.0. Understanding pixel ratios is essential for serving correctly sized images, designing responsive layouts, and ensuring visual consistency across the diverse device ecosystem.

        적용 수학 공식 및 방정식

        이 Pixel Ratio Calculator는 5가지 핵심 수학 공식을 사용합니다:

        1 Physical Pixels from CSS ▼
        Physical Pixels = CSS Pixels × Device Pixel Ratio

        A 375px CSS width at 3× DPR: Physical = 375 × 3 = 1125 physical pixels.

        2 CSS Pixels from Physical ▼
        CSS Pixels = Physical Pixels / Device Pixel Ratio

        A 2560×1440 display at 2× DPR renders as 1280×720 CSS pixels.

        3 Image Size for Target DPR ▼
        Required Image Size = Display Size (CSS) × Target DPR

        A 300×200 CSS image area needs 600×400 source for 2× DPR, 900×600 for 3× DPR.

        Explore all calculation options on the 비율 계산기 home page.

        비율 계산기 사용법

        이 비율 계산기는 아래의 3단계로 쉽게 사용할 수 있습니다:

        1

        수치 입력하기

        입력 칸에 알고 있는 비율 값을 입력합니다. 구하려는 미지수 자리의 칸 하나는 비워둡니다.

        2

        모드 선택하기

        비율 모드(풀기, 간소화, 스케일링)를 선택합니다. 각 모드는 입력한 수치에 맞춰 다른 공식들을 적용합니다.

        3

        결과 확인하기

        계산하기 버튼을 누릅니다. 결과 화면에 정답과 함께 시각적인 비율 바, 원형 차트, 상세한 단계별 풀이 과정이 출력됩니다.

        실제 예제 문제 및 단계별 풀이

        비율 계산기를 활용하여 아래 3가지 예제 문제를 단계별로 해결하는 과정입니다:

        입력 1 iPhone 14 Pro: 393×852 CSS at 3× DPR
        1 Identify CSS viewport dimensions (393 × 852 pt) and Device Pixel Ratio (DPR = 3.0).
        2 Calculate physical width: 393 × 3 = 1,179 pixels.
        3 Calculate physical height: 852 × 3 = 2,556 pixels.
        ✓ Physical Screen Resolution is 1179 × 2556 pixels
        입력 2 Image for 2× and 3× displays
        1 Target UI display size: 300 × 200 CSS pixels.
        2 Standard 1× asset: 300 × 200 px.
        3 Retina @2x asset: 600 × 400 px.
        4 Retina @3x asset: 900 × 600 px.
        ✓ Export @2x (600×400) and @3x (900×600) assets
        입력 3 Calculate DPR from screen specs
        1 Screen hardware resolution: 2880 × 1800 px.
        2 Rendered CSS viewport: 1440 × 900 px.
        3 Divide physical by CSS: 2880 ÷ 1440 = 2.0 DPR.
        ✓ Device Pixel Ratio (DPR) is 2.0×

        자주 묻는 질문 (FAQ)

        What is device pixel ratio (DPR)? ▼

        Device pixel ratio is the ratio of physical pixels to CSS (logical) pixels on a display. A DPR of 2.0 means each CSS pixel is rendered by a 2×2 block of 4 physical pixels, resulting in sharper text and graphics. Higher DPR displays are called Retina (Apple) or HiDPI (general).

        What is the DPR of an iPhone? ▼

        iPhone SE/6/7/8: DPR 2.0. iPhone 12/13/14/15 standard: DPR 3.0. iPhone Pro/Pro Max: DPR 3.0. The CSS viewport width is 375-430px, but physical resolution ranges from 750px (SE) to 1290px (Pro Max).

        How do I make images look sharp on Retina displays? ▼

        Provide images at 2× the CSS display size. If an image displays at 600×400 CSS pixels, the source file should be 1200×800 pixels for 2× Retina. Use the HTML srcset attribute to serve this to Retina devices while sending the 1× version to standard screens.

        What is the difference between CSS pixels and physical pixels? ▼

        CSS pixels are the logical unit used in web design (what you set in CSS). Physical pixels are the actual light-emitting elements on the screen. On a DPR 2.0 display, 1 CSS pixel = 2×2 = 4 physical pixels. This distinction means a '1920px wide' CSS layout can be rendered by 3840 physical pixels.

        How does DPR affect image file size? ▼

        A 2× image has 4 times the pixel count (2× width × 2× height). A 3× image has 9 times the pixel count. This proportionally increases file size (compressed sizes vary, but expect 2-4× larger files for 2× images). This is why responsive images with srcset are important for performance.

        What is srcset and how does it relate to pixel ratio? ▼

        srcset is an HTML attribute that provides multiple image sources at different resolutions. The browser selects the best match based on the device's DPR and viewport size. Example: srcset='hero-400.jpg 400w, hero-800.jpg 800w, hero-1200.jpg 1200w' with sizes='100vw' lets the browser choose optimally.

        What DPR should I design for? ▼

        Design at 1× CSS pixels (logical) and export assets at 2× for web. This covers most devices. For iOS development, export at @2x and @3x. For Android, export mdpi (1×), xhdpi (2×), and xxhdpi (3×) at minimum. Creating only 1× assets is not acceptable for modern apps.

        How do I check my screen's pixel ratio? ▼

        In any browser, open Developer Tools console and type window.devicePixelRatio. On Windows, check Display Settings > Scale. On Mac, Retina displays report DPR 2.0. Online tools can also detect and display your current device's DPR.

        Do SVG images need different sizes for different DPRs? ▼

        No. SVG (Scalable Vector Graphics) is resolution-independent — it renders sharply at any size and any DPR. Use SVGs for icons, logos, illustrations, and any graphic that can be represented as vectors. Only raster images (JPEG, PNG, WebP) need DPR-specific sizes.

        What is PPI vs. DPR? ▼

        PPI (pixels per inch) measures the physical pixel density of a screen (e.g., 326 PPI for iPhone). DPR is the ratio of physical pixels to CSS pixels (e.g., 2.0 for Retina). A 326 PPI iPhone with DPR 2.0 shows CSS content at an effective 163 PPI logical density.

        How does pixel ratio affect web performance? ▼

        Serving unnecessarily high-resolution images to low-DPR devices wastes bandwidth and increases load time. Properly implementing responsive images with srcset and sizes attributes ensures each device downloads only the resolution it needs, improving Largest Contentful Paint (LCP) scores.

        비율 이론 학습하기

        비율이란 정확히 무엇인가요?

        비율(Ratio)은 두 가지 이상의 양의 크기를 서로 견주어 비교해 나타낸 수치입니다. 기호로는 A : B 와 같이 나타내며, '앞엣것 A의 단위량당 뒤엣것 B의 분량이 매칭된다'는 상호 관계입니다. 3 : 4 비율이라면 A가 3개 배분될 때 B는 4개 매칭된다는 정비례 관계를 갖습니다. 요리 레시피 배량, 기계 설계, 금융 재무 분석 등에 두루 사용됩니다.

        비례식은 어떻게 푸나요?

        비례식은 두 비율의 가치가 같다는 것을 뜻하는 수학 등식입니다 (A : B = C : D). 외항의 곱(A × D)과 내항의 곱(B × C)은 항상 같습니다. 미지수 D를 구하려면 내항을 곱한 뒤 남은 외항 A로 나눕니다: D = (B × C) / A. 비율 계산기의 비례식 해결 모드에 알고 있는 세 숫자를 넣으면 미지수를 즉각 도출할 수 있습니다.

        비율은 어떻게 간단하게 정리하나요?

        두 숫자의 최대공약수(GCD)를 구한 다음 두 수를 모두 그 최대공약수로 나누어 약분하면 됩니다. 예컨대 24 : 36 의 경우 24와 36의 최대공약수가 12이므로 양쪽을 12로 나누면 가장 간단한 자연수의 비인 2 : 3이 됩니다. 비율 계산기가 GCD 연산과 약분을 자동으로 처리해 줍니다.

        비율 크기 스케일링은 언제 사용하나요?

        비율 관계를 흩뜨리지 않고 전체 양을 늘리거나 줄일 때 사용합니다. 예컨대 2 : 5 비율의 자재가 있을 때 양쪽 모두에 3을 곱하면 6 : 15 가 되어 동일한 비중을 가지면서 3배 많은 배합물을 준비할 수 있습니다. 빵 굽기 반죽 용량 증감, 조립 도면 축소 스케일링 등에서 필수적입니다.

        비율과 분수의 차이점은 무엇인가요?

        비율(A : B)은 대등한 성분끼리 양의 크기를 비교하는 것(부분 대 부분)에 가깝고, 분수(A/B)는 전체 수량의 파이 속에서 특정 부위가 차지하는 지분율(부분 대 전체)을 표현하는 경우가 많습니다. 다만 비율 3 : 4 역시 분수 3/4 (소수 0.75)의 가치로 나타낼 수 있습니다. 쓰임새와 의미 맥락에서 미세한 뉘앙스 차이가 존재합니다.