5/5
## Understanding Long and Short Positions in Trading When participating in financial markets, particularly when using instruments like perpetual swaps, traders aim to profit from price movements. This involves making a prediction about the future direction of an asset's price and taking a position accordingly. There are two fundamental types of directional positions: long and short. This lesson explains both concepts, how profit and loss are calculated, and how these positions function within the context of perpetual swaps compared to traditional spot market actions. ## Going Long: Betting on Price Increases Taking a "long" position means you are betting that the price of an underlying asset will increase. You enter the position at a certain price (the opening price) and aim to exit it later at a higher price (the closing price). **Profit/Loss Calculation (Long):** The profit or loss (P/L) for a long position is calculated based on the difference between the closing price and the opening price. `Profit/Loss = Closing Price - Opening Price` A positive result indicates a profit, while a negative result indicates a loss. **Example 1: Long Position with Price Increase (Profit)** * **Scenario:** You believe the price of Ethereum (ETH) will rise from its current price of $2000 USD. You decide to open a long position equivalent to 1 ETH on an ETH/USD perpetual swap contract. * **Action:** Open long position at $2000. * **Outcome:** The price of ETH increases to $3000 USD, and you decide to close your position. * **Calculation:** P/L = $3000 (Close) - $2000 (Open) = +$1000 USD. * **Result:** You have made a profit of $1000 USD. **Example 2: Long Position with Price Decrease (Loss)** * **Scenario:** You open a long position of 1 ETH at $2000 USD, anticipating a price increase. * **Action:** Open long position at $2000. * **Outcome:** Contrary to your expectation, the price of ETH falls to $500 USD. You decide to close your position to limit further losses. * **Calculation:** P/L = $500 (Close) - $2000 (Open) = -$1500 USD. * **Result:** You have incurred a loss of $1500 USD. **Comparison to Spot Market:** Taking a long position in a perpetual swap produces a similar financial outcome to buying the actual asset in the spot market. In Example 1, buying 1 ETH at $2000 and selling it at $3000 would also yield a $1000 profit. In Example 2, buying 1 ETH at $2000 and selling it at $500 results in a $1500 loss. The key difference is that with perpetual swaps, you achieve this financial result *without* actually buying, holding, or selling the underlying ETH tokens. ## Going Short: Betting on Price Decreases Taking a "short" position is the opposite of going long. It means you are betting that the price of an underlying asset will decrease. You enter the position at an opening price and aim to exit it later at a lower closing price. **Profit/Loss Calculation (Short):** The profit or loss (P/L) for a short position is calculated by subtracting the closing price from the opening price. Note that this is the reverse of the long position calculation, reflecting that profit is made when the price goes down. `Profit/Loss = Opening Price - Closing Price` Again, a positive result indicates profit, and a negative result indicates loss. **Example 3: Short Position with Price Decrease (Profit)** * **Scenario:** You believe the price of ETH, currently at $2000 USD, will fall. You decide to open a short position equivalent to 1 ETH on an ETH/USD perpetual swap contract. * **Action:** Open short position at $2000. * **Outcome:** The price of ETH drops to $1000 USD, and you decide to close your position to realize your profit. * **Calculation:** P/L = $2000 (Open) - $1000 (Close) = +$1000 USD. * **Result:** You have made a profit of $1000 USD. **Example 4: Short Position with Price Increase (Loss)** * **Scenario:** You open a short position of 1 ETH at $2000 USD, expecting the price to fall. * **Action:** Open short position at $2000. * **Outcome:** However, the price of ETH rises significantly to $4000 USD. You decide to close your position to prevent further losses. * **Calculation:** P/L = $2000 (Open) - $4000 (Close) = -$2000 USD. * **Result:** You have incurred a loss of $2000 USD. **Comparison to Spot Market (Short Selling):** A short position in a perpetual swap mirrors the financial outcome of traditional short selling in the spot market. For Example 3: 1. Borrow 1 ETH. 2. Sell it immediately for $2000. 3. Wait for the price to drop to $1000. 4. Buy 1 ETH back for $1000. 5. Return the borrowed 1 ETH. Your net profit is $2000 (from selling) - $1000 (for buying back) = $1000. For Example 4: 1. Borrow 1 ETH and sell it for $2000. 2. The price rises to $4000. 3. You must buy 1 ETH back for $4000 to return it. Your net loss is $2000 (from selling) - $4000 (for buying back) = -$2000. Again, perpetual swaps provide the same financial profit or loss without requiring the trader to actually borrow, sell, and repurchase the underlying asset. ## Perpetual Swaps vs. Spot Market Actions: Key Takeaway The core concept illustrated is that perpetual swaps allow traders to achieve the financial results of directional betting (long or short) without needing to handle the underlying asset itself. Whether you go long (expecting a price increase) or short (expecting a price decrease), the profit or loss on a perpetual swap contract is determined purely by the difference between your entry and exit prices relative to your position size and direction. This mechanism simplifies the process compared to spot market trading, which involves buying, selling, custody, or (for shorting) borrowing and repaying the actual tokens. Perpetual swaps abstract these complexities while aiming to replicate the financial outcomes.
A fundamental introduction to Understanding Long vs. Short Positions - Grasp the core concepts of long positions (betting price increases) and short positions (betting price decreases). Understand how perpetual swaps calculate profit/loss similarly to spot trading, without handling the actual asset.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Cyfrin Updraft has partnered with GMX to provide SSCD+ certifications vouchers to the first 25 students who demonstrate the completion of this course and are building on top of GMX. Join the GMX Discord server to redeem your coupon, or navigate to the docs to learn more!
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025
Duration: 8min
Duration: 1h 19min
Duration: 1h 24min
Duration: 16min
Duration: 11min
Duration: 11min
Duration: 6min
Course Overview
About the course
Mechanics and contract architecture of the GMX protocol
Token pricing and fees
Liquidity: GM pools and GLV vaults
Math, funding rates, liquidation pricing, P&L calculations
Limit orders, take profit orders, stop loss, and stop market orders
Auto-cancel and auto-deleveraging
GLP, esGMX, GMX staking and delegation
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Last updated on June 26, 2025